2021-03-31 07:45:41 +00:00
|
|
|
---
|
2022-04-04 09:41:43 +00:00
|
|
|
- name: Check for /etc/network/interfaces
|
|
|
|
stat:
|
|
|
|
path: /etc/network/interfaces
|
|
|
|
register: debian_interfaces
|
|
|
|
|
|
|
|
|
2021-03-31 07:45:41 +00:00
|
|
|
- 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
|
2022-04-04 09:41:43 +00:00
|
|
|
when: debian_interfaces.stat.exists
|
2021-03-31 07:45:41 +00:00
|
|
|
|
|
|
|
|