infra-nimbus/ansible/roles/update-netplan/tasks/main.yml

11 lines
243 B
YAML

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