markoburcul c38dc75f7f
ansible: Change hostname to inventory_hostname
Due to the change caused by updated terraform script, we need to change
usage of variable `hostname` to `inventory_hostname`.

Signed-off-by: markoburcul <marko@status.im>
2024-09-16 08:10:36 +02:00

11 lines
253 B
YAML

---
- name: Copy netplan config file
register: netplan
copy:
src: 'vars/addresses/{{ inventory_hostname }}.yml'
dest: '/etc/netplan/00-installer-config.yaml'
- name: Apply host netplan
when: netplan.changed
command: sudo netplan apply