Browse Source

don't execute parted command when no flags are defined

master
parent
commit
e9cde6911e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tasks/main.yml

+ 1
- 0
tasks/main.yml View File

@@ -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


Loading…
Cancel
Save