Signed-off-by: David Galloway <dgallowa@redhat.com>
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 }}"
- 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: