From 4f1e854c79d0aa3635f35441f84e126a185f21fa Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Thu, 30 Nov 2017 17:46:55 +0000 Subject: [PATCH] Use parted module instead of command --- roles/ceph-osd/tasks/check_gpt.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-osd/tasks/check_gpt.yml b/roles/ceph-osd/tasks/check_gpt.yml index 0cfc80ef5..79371eb1e 100644 --- a/roles/ceph-osd/tasks/check_gpt.yml +++ b/roles/ceph-osd/tasks/check_gpt.yml @@ -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 }}" -- 2.39.5