From 561130c758cdf6c1e2d17036ca93ed697ac7f448 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 27 Dec 2021 15:54:23 +0100 Subject: [PATCH] make uuid optional --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 65b252c..edd5eb6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,7 +20,7 @@ filesystem: fstype: "{{ item.fstype }}" dev: "{{ item.device }}" - opts: -U {{ item.uuid }} + opts: "{% if item.uuid is defined %}-U {{ item.uuid }}{% endif %}" force: "{{ filesystems_state == 'formated' }}" with_items: "{{ filesystems }}" when: