1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

centos errors out if no ifcfg files to delete

This commit is contained in:
George Hunt 2018-03-30 16:02:31 -07:00
parent e0eae4fe9b
commit 82394328cf

View file

@ -14,6 +14,7 @@
# clear all bridge ifcfg files # clear all bridge ifcfg files
- name: Now delete slave bridge ifcfg files - name: Now delete slave bridge ifcfg files
shell: rm -f /etc/sysconfig/network-scripts/ifcfg-"{{ item }}" shell: rm -f /etc/sysconfig/network-scripts/ifcfg-"{{ item }}"
ignore_errors: True
when: num_lan_interfaces != 0 or iiab_wireless_lan_iface != "none" when: num_lan_interfaces != 0 or iiab_wireless_lan_iface != "none"
with_items: with_items:
- "{{ ifcfg_slaves.stdout_lines }}" - "{{ ifcfg_slaves.stdout_lines }}"