]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
tools: Clean up /ceph-qa-ready lockfile 420/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 7 Nov 2018 20:40:35 +0000 (15:40 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 7 Nov 2018 20:40:35 +0000 (15:40 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/prep-fog-capture.yml

index d8d24cdd62fa7dbce780a5df73eeee5afcc0447a..2035547faf48db2d888619b0067d80336d031b03 100644 (file)
@@ -9,17 +9,15 @@
   become: true
   tasks:
 
-  # The machine used to *capture* the trusty image gets its MAC addresses hard coded in any subsequent cloned machines
-  - name: Remove udev rules
+  # We need to leave /.cephlab_rc_local or else each FOG reimage would tell Cobbler to run ceph-cm-ansible
+  - name: Remove lock files and udev rules
     file:
-      path: /etc/udev/rules.d/70-persistent-net.rules
-      state: absent
-
-  # On the off chance that the rc.local script got run and touched this lockfile, remove it
-  - name: Remove /.cephlab_net_configured
-    file:
-      path: /.cephlab_net_configured
+      path: "{{ item }}"
       state: absent
+    with_items:
+      - /etc/udev/rules.d/70-persistent-net.rules
+      - /.cephlab_net_configured
+      - /ceph-qa-ready
 
   - name: Get list of ifcfg scripts from host used to capture image
     shell: "ls -1 /etc/sysconfig/network-scripts/ifcfg-* | grep -v ifcfg-lo"