ultrabirb-cluster/ansible/tasks/setup-static-route.yaml

18 lines
477 B
YAML

- 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
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"