Check for /etc/network/interfaces
This commit is contained in:
parent
7bf2ab1b75
commit
58824faa90
|
@ -1,9 +1,16 @@
|
|||
---
|
||||
- name: Check for /etc/network/interfaces
|
||||
stat:
|
||||
path: /etc/network/interfaces
|
||||
register: debian_interfaces
|
||||
|
||||
|
||||
- name: Fix evil Debian default /etc/network/interfaces
|
||||
lineinfile:
|
||||
dest: /etc/network/interfaces
|
||||
regexp: 'source.*interfaces.d'
|
||||
line: 'source-directory /etc/network/interfaces.d'
|
||||
backup: yes
|
||||
when: debian_interfaces.stat.exists
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue