basics.yml aktualisiert
This commit is contained in:
parent
cf89c3124c
commit
fedf0967c7
@ -121,6 +121,7 @@
|
||||
path: /etc/dhcpcd.conf
|
||||
line: denyinterfaces docker0 virbr0 tornet0 veth* br*
|
||||
when: nocontainer.stat.exists == true
|
||||
register: dhcpcd
|
||||
|
||||
- name: Check weather /etc/network/interfaces exists
|
||||
stat:
|
||||
@ -148,6 +149,12 @@
|
||||
replace: '#\1'
|
||||
when: stat_result.stat.exists
|
||||
|
||||
- name: Restart dhcpcd
|
||||
service:
|
||||
name: dhcpcd
|
||||
state: restarted
|
||||
when: dhcpcd.changed
|
||||
|
||||
- name: Set a hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{inventory_hostname}}"
|
||||
|
Loading…
Reference in New Issue
Block a user