Use parted module instead of command

pull/2226/head
Andy McCrae 2017-11-30 17:46:55 +00:00
parent 29d21303d7
commit 4f1e854c79
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@
register: osd_partition_status_results
- name: create gpt disk label
command: parted --script {{ item.1 }} mklabel gpt
parted:
device: "{{ item.1 }}"
label: gpt
with_together:
- "{{ osd_partition_status_results.results }}"
- "{{ devices }}"