„basics.yml“ ändern

This commit is contained in:
olli 2022-12-23 15:37:00 +01:00
parent 5d551ca613
commit f5cae7a790

View File

@ -83,12 +83,17 @@
path: /etc/dhcpcd.conf
line: denyinterfaces docker0 virbr0 tornet0 veth* br*
- name: Check weather /etc/network/interfaces exists
stat:
path: /etc/network/interfaces
register: stat_result
- name: Disable all Network-config but source interfaces.d in /etc/network/interfaces because dhcpcd will do the job
replace:
path: /etc/network/interfaces
regexp: '(^iface .*)'
replace: '#\1'
when: $(-s /etc/network/interfaces)
when: stat_result.stat.exists
- name: Disable all Network-config but source interfaces.d in /etc/network/interfaces because dhcpcd will do the job
replace: