]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
tools: Support OpenSUSE Leap 15.0 in prep-fog-capture playbook 415/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 18:57:48 +0000 (14:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 20:32:46 +0000 (16:32 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/prep-fog-capture.yml

index 0c38c59797153695c88ba4f9a9843b89c3d4efde..d8d24cdd62fa7dbce780a5df73eeee5afcc0447a 100644 (file)
     when: ansible_os_family == "RedHat"
     ignore_errors: true
 
+  - name: Get list of ifcfg scripts from host used to capture image
+    shell: "ls -1 /etc/sysconfig/network/ifcfg-* | grep -v ifcfg-lo"
+    register: ifcfg_scripts
+    when: ansible_os_family == "Suse"
+    ignore_errors: true
+
   - name: Delete ifcfg scripts
     file:
       path: "{{ item }}"
@@ -79,7 +85,8 @@
 
   - set_fact:
       ntp_service: chronyd
-    when: ansible_os_family == "RedHat" and ansible_distribution_major_version >= 8
+    when: (ansible_os_family == "RedHat" and ansible_distribution_major_version >= 8) or
+          ansible_os_family == "Suse"
 
   - name: "Stop {{ ntp_service }} service"
     service: