change dhcpcd setting

This commit is contained in:
vincent 2021-11-14 17:13:49 +01:00
parent caa251e1f8
commit b9f8da2627
2 changed files with 10 additions and 0 deletions

9
tasks/dhcpcd.yml Normal file
View File

@ -0,0 +1,9 @@
---
- name: change hostname setting
lineinfile:
dest: /etc/dhcpcd.conf
regexp: "^#hostname"
line: "hostname"
state present

View File

@ -1,5 +1,6 @@
#- include_tasks: hostname.yml #- include_tasks: hostname.yml
- include_tasks: hosts.yml - include_tasks: hosts.yml
- include_tasks: dhcpcd.yml
- include_tasks: hostname.yml - include_tasks: hostname.yml
- include_tasks: locales.yml - include_tasks: locales.yml
- include_tasks: time.yml - include_tasks: time.yml