From e9cde6911e79f937495616628e666db11ba66763 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sun, 22 Oct 2017 23:27:02 +0000 Subject: [PATCH] don't execute parted command when no flags are defined --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index a0ec123..ac7bf4b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -28,6 +28,7 @@ -- unit kiB {{ lookup('template','parted_flags_args.j2') }} with_items: "{{ hard_disks }}" + when: ( item.partitions | json_query("[].flags") | length ) > 0 - name: sync command: sync