2022-05-05 18:03:54 +00:00
|
|
|
- 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'
|
2022-05-09 08:18:05 +00:00
|
|
|
register: networkconfig
|
2022-05-05 18:03:54 +00:00
|
|
|
|
|
|
|
- name: Netplan Apply
|
|
|
|
ansible.builtin.shell: netplan apply
|
2022-05-09 08:18:05 +00:00
|
|
|
when: networkconfig.changed
|
2022-05-05 18:03:54 +00:00
|
|
|
|
2022-05-09 09:40:31 +00:00
|
|
|
- name: Add Table 42 after netplan Apply
|
|
|
|
ansible.builtin.shell: /bin/ip rule add fwmark 0x4 table 42
|
|
|
|
when: networkconfig.changed
|
2022-05-05 18:03:54 +00:00
|
|
|
|
2022-05-09 09:40:31 +00:00
|
|
|
- name: Add Table 42v6 after netplan Apply
|
|
|
|
ansible.builtin.shell: /bin/ip -6 rule add fwmark 0x4 table 42
|
|
|
|
when: networkconfig.changed
|