„basics.yml“ ändern

This commit is contained in:
olli 2022-12-23 15:40:57 +01:00
parent 6a27d2e6f7
commit 5c8438ec07

View File

@ -100,12 +100,14 @@
path: /etc/network/interfaces
regexp: '(^allow-hotplug .*)'
replace: '#\1'
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:
path: /etc/network/interfaces
regexp: '(^auto .*)'
replace: '#\1'
when: stat_result.stat.exists
- name: Set a hostname
ansible.builtin.hostname: