alpine: set inventory_hostname as hostname
Instead of dns_name which might not be defined and is wrong in any case.
This commit is contained in:
parent
a8814e6da2
commit
cbd3f1a7ea
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: '{{ dns_name }}'
|
||||
name: '{{ inventory_hostname }}'
|
||||
|
||||
- name: Set up resolv.conf
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue