From 8f28337280aa3574634a707a357a9d8b8e00ca04 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (cherry picked from commit 4f1e854c79d0aa3635f35441f84e126a185f21fa) Signed-off-by: Sébastien Han --- 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