From: David Galloway Date: Tue, 2 Oct 2018 18:57:48 +0000 (-0400) Subject: tools: Support OpenSUSE Leap 15.0 in prep-fog-capture playbook X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5786f4bf6c833fbf10eb893f1f19cdfbeba69dbb;p=ceph-cm-ansible.git tools: Support OpenSUSE Leap 15.0 in prep-fog-capture playbook Signed-off-by: David Galloway --- diff --git a/tools/prep-fog-capture.yml b/tools/prep-fog-capture.yml index 0c38c59..d8d24cd 100644 --- a/tools/prep-fog-capture.yml +++ b/tools/prep-fog-capture.yml @@ -27,6 +27,12 @@ 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: