From: Andy McCrae Date: Thu, 30 Nov 2017 17:46:55 +0000 (+0000) Subject: Use parted module instead of command X-Git-Tag: v3.0.16~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2243%2Fhead;p=ceph-ansible.git Use parted module instead of command (cherry picked from commit 4f1e854c79d0aa3635f35441f84e126a185f21fa) Signed-off-by: Sébastien Han --- 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 }}"