hostname: Also write /etc/hosts
This commit introduces a new role, *hostname*, that is used by the `hostname.yml` playbook to set the hostname. It also writes `/etc/hosts` using a template.
This commit is contained in:
1
roles/hostname/defaults/main.yml
Normal file
1
roles/hostname/defaults/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
preferred_hostname: '{{ inventory_hostname }}'
|
||||
Reference in New Issue
Block a user