2021-11-08 03:32:56 +01:00
|
|
|
- name: "remove cloudinit config"
|
|
|
|
file:
|
|
|
|
path: /etc/netplan/50-cloud-init.yaml
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: "install static config"
|
|
|
|
template:
|
|
|
|
src: templates/netplan.yaml
|
|
|
|
dest: /etc/netplan/00-static.yaml
|
2021-11-12 00:36:16 +01:00
|
|
|
notify: netplanapply
|
|
|
|
when: ansible_host != "magic-router"
|
|
|
|
|
|
|
|
- name: "install static config for magic router"
|
|
|
|
copy:
|
|
|
|
src: files/magic_router_netplan.yaml
|
|
|
|
dest: /etc/netplan/00-static.yaml
|
|
|
|
notify: netplanapply
|
|
|
|
when: ansible_host == "magic-router"
|