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:
Timotej Lazar 2025-05-15 10:47:55 +02:00
parent a8814e6da2
commit cbd3f1a7ea

View file

@ -29,7 +29,7 @@
- name: Set hostname
hostname:
name: '{{ dns_name }}'
name: '{{ inventory_hostname }}'
- name: Set up resolv.conf
template: