From: Andy McCrae Date: Thu, 30 Nov 2017 17:46:55 +0000 (+0000) Subject: Use parted module instead of command X-Git-Tag: beta-3.1.0~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2226%2Fhead;p=ceph-ansible.git Use parted module instead of command --- 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 }}"