„basics.yml“ ändern
This commit is contained in:
parent
5d551ca613
commit
f5cae7a790
@ -83,12 +83,17 @@
|
|||||||
path: /etc/dhcpcd.conf
|
path: /etc/dhcpcd.conf
|
||||||
line: denyinterfaces docker0 virbr0 tornet0 veth* br*
|
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
|
- name: Disable all Network-config but source interfaces.d in /etc/network/interfaces because dhcpcd will do the job
|
||||||
replace:
|
replace:
|
||||||
path: /etc/network/interfaces
|
path: /etc/network/interfaces
|
||||||
regexp: '(^iface .*)'
|
regexp: '(^iface .*)'
|
||||||
replace: '#\1'
|
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
|
- name: Disable all Network-config but source interfaces.d in /etc/network/interfaces because dhcpcd will do the job
|
||||||
replace:
|
replace:
|
||||||
|
Loading…
Reference in New Issue
Block a user