vm-ansible/roles/common/tasks/static-networking.yaml

17 lines
353 B
YAML

---
- name: "remove cloudinit config"
file:
path: /etc/netplan/50-cloud-init.yaml
state: absent
- name: "remove installer config"
file:
path: /etc/netplan/00-installer-config.yaml
state: absent
- name: "install static config"
template:
src: templates/netplan.yaml
dest: /etc/netplan/00-static.yaml
notify: netplanapply