ansible.fftdf.supernode/roles/00-system-set-network/tasks/main.yml
2022-05-09 10:18:05 +02:00

28 lines
729 B
YAML

- name: Cop Network Config
ansible.builtin.template:
src: 01-ffrl-gre.yaml.j2
dest: /etc/netplan/01-ffrl-gre.yaml
owner: root
group: root
mode: '0644'
register: networkconfig
- name: Netplan Apply
ansible.builtin.shell: netplan apply
when: networkconfig.changed
- name: Add ifDown Scripts via networkd-dispatcher
ansible.builtin.template:
src: 50-ifdown-hooks.sh.j2
dest: /etc/networkd-dispatcher/off.d/50-ifdown-hooks.sh
owner: root
group: root
mode: '0755'
- name: Add ifUP Scripts via networkd-dispatcher
ansible.builtin.template:
src: 50-ifup-hooks.sh.j2
dest: /etc/networkd-dispatcher/routable.d/50-ifup-hooks.sh
owner: root
group: root
mode: '0755'