]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Erase /scratch_devs each run in case the devices changed
authorDavid Galloway <dgallowa@redhat.com>
Fri, 29 Sep 2017 17:31:39 +0000 (13:31 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 29 Sep 2017 19:34:12 +0000 (15:34 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/drive_partitioning.yml

index d3ea7022d223429644926b60842ba0e008b557fd..c8595cf6d2eb28fa5aa83e4e07e16b3943ec3708 100644 (file)
     - "{{ drives_to_partition }}"
     - sizes
 
-- name: "Add /scratch_devs for {{ item.0.device }}"
+- name: "Erase /scratch_devs so we know it's accurate"
+  file:
+    path: /scratch_devs
+    state: absent
+
+- name: "Write /scratch_devs for {{ item.0.device }}"
   lineinfile:
     dest: /scratch_devs
     create: yes