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
|
- name: Fix evil Debian default /etc/network/interfaces
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/network/interfaces
|
dest: /etc/network/interfaces
|
||||||
regexp: 'source.*interfaces.d'
|
regexp: 'source.*interfaces.d'
|
||||||
line: 'source-directory /etc/network/interfaces.d'
|
line: 'source-directory /etc/network/interfaces.d'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
when: debian_interfaces.stat.exists
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue