- name: Create bridge interfaces hosts: physicalServer tasks: # For this to work we should be applying these changes connected through a different interface - name: Create router vm WAN if bridge block: - name: Create WAN bridge if community.general.nmcli: type: bridge conn_name: bridge-router-w0 ifname: "{{ router_wan_if }}" state: present - name: Bound bridge if to slave physical community.general.nmcli: type: bridge-slave slave_type: bridge master: "{{ router_wan_if }}" conn_name: bridge-slave-enp10s0 ifname: enp10s0 state: present - name: Turn off physical community.general.nmcli: ifname: enp10s0 conn_name: enp10s0 state: down - name: Create router vm LAN if bridge block: - name: Create LAN bridge if community.general.nmcli: type: bridge conn_name: bridge-router-l0 ifname: "{{ router_lan_if }}" state: present ip4: 192.168.0.1/24 - name: Bound bridge if to slave physical community.general.nmcli: type: bridge-slave slave_type: bridge master: "{{ router_lan_if }}" conn_name: bridge-slave-enp11s0f0np0 ifname: enp11s0f0np0 state: present - name: Turn off physical community.general.nmcli: ifname: enp11s0f0np0 conn_name: enp11s0f0np0 state: down