diff --git a/tasks/dhcpcd.yml b/tasks/dhcpcd.yml new file mode 100644 index 0000000..d510d20 --- /dev/null +++ b/tasks/dhcpcd.yml @@ -0,0 +1,9 @@ +--- +- name: change hostname setting + lineinfile: + dest: /etc/dhcpcd.conf + regexp: "^#hostname" + line: "hostname" + state present + + diff --git a/tasks/main.yml b/tasks/main.yml index 13725bb..261eb14 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,6 @@ #- include_tasks: hostname.yml - include_tasks: hosts.yml +- include_tasks: dhcpcd.yml - include_tasks: hostname.yml - include_tasks: locales.yml - include_tasks: time.yml