#!/usr/bin/env ansible-playbook --- - hosts: - vm_network vars: ifupdown2__gateways: adm: - 2a09:6840:128::254 - 10.128.0.254 int: - 2a09:6840:206::1 - 10.206.0.1 # TODO: netbox ifupdown2__hosts: edge-1.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:2/56 - 10.128.10.2/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: ipv6_addrgen: false forward: true ens20: adressses: - 2001:1b48:2:103::d7:0 ipv6_addrgen: false forward: true ens21: ipv6_addrgen: false forward: true ens22: addresses: - 2a09:6840:203:1:1::1/56 - 10.203.1.1/16 forward: true edge-2.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:102/56 - 10.128.10.102/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: ipv6_addrgen: false forward: true ens20: adresses: - 2001:1b48:2:103::d7:3 ipv6_addrgen: false forward: true ens21: ipv6_addrgen: false forward: true ens22: addresses: - 2a09:6840:203:1:2::1/56 - 10.203.1.2/16 forward: true dns-1.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:3/56 - 10.128.10.3/16 #gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:0:2::1/56 - 10.206.0.2/16 gateways: "{{ ifupdown2__gateways.int }}" dns-2.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:103/56 - 10.128.10.103/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:0:3::1/56 - 10.206.0.3/16 ssh-1.mgmt.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:1/56 - 10.128.10.1/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:207:1:2::1/56 - 45.66.108.2/16 ens20: addresses: - 2a09:6840:211:1:1::1/56 - 10.211.1.1/16 ssh-2.mgmt.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:101/56 - 10.128.10.101/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: - 2a09:6840:207:1:3::1/56 - 45.66.108.3/16 ens20: addresses: - 2a09:6840:211:1:2::1/56 - 10.211.1.2/16 infra-1.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:4/56 - 10.128.10.4/16 gateways: "{{ ifupdown2__gateways.adm }}" forward: true ens19: addresses: - 2a09:6840:203:1:3::1/56 - 10.203.1.3/16 forward: true ens20: ipv6_addrgen: false forward: true ens21: ipv6_addrgen: false forward: true ens22: ipv6_addrgen: false forward: true ens23: ipv6_addrgen: false forward: true enp2s1: ipv6_addrgen: false forward: true enp2s2: ipv6_addrgen: false forward: true enp2s3: ipv6_addrgen: false forward: true enp2s4: ipv6_addrgen: false forward: true infra-2.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:104/56 - 10.128.10.104/16 gateways: "{{ ifupdown2__gateways.adm }}" forward: true ens19: addresses: - 2a09:6840:203:4::1/64 - 10.203.1.4/16 forward: true ens20: ipv6_addrgen: false forward: true ens21: ipv6_addrgen: false forward: true ens22: ipv6_addrgen: false forward: true ens23: ipv6_addrgen: false forward: true enp2s1: ipv6_addrgen: false forward: true enp2s2: ipv6_addrgen: false forward: true enp2s3: ipv6_addrgen: false forward: true enp2s4: ipv6_addrgen: false forward: true isp-1.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:5/56 - 10.128.10.5/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:203:1:5::1/56 - 10.203.1.5/16 forward: true ens20: ipv6_addrgen: false clients: bridge_vlan_aware: true bridge_ports: - ens20 bridge_vids: - 1000-1004 bridge_disable_pvid: true ipv6_addrgen: false forward: true client-0: vlan_id: 1000 vlan_raw_device: clients ipv6_addrgen: false forward: true client-1: vlan_id: 1001 vlan_raw_device: clients ipv6_addrgen: false forward: true client-2: vlan_id: 1002 vlan_raw_device: clients ipv6_addrgen: false forward: true client-3: vlan_id: 1003 vlan_raw_device: clients ipv6_addrgen: false forward: true client-4: vlan_id: 1004 vlan_raw_device: clients ipv6_addrgen: false forward: true isp-2.rtr.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:105/56 - 10.128.10.105/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:203:1:6::1/56 - 10.203.1.6/16 forward: true ens20: ipv6_addrgen: false clients: bridge_vlan_aware: true bridge_ports: - ens20 bridge_vids: - 1000-1004 bridge_disable_pvid: true ipv6_addrgen: false forward: true client-0: vlan_id: 1000 vlan_raw_device: clients ipv6_addrgen: false forward: true client-1: vlan_id: 1001 vlan_raw_device: clients ipv6_addrgen: false forward: true client-2: vlan_id: 1002 vlan_raw_device: clients ipv6_addrgen: false forward: true client-3: vlan_id: 1003 vlan_raw_device: clients ipv6_addrgen: false forward: true client-4: vlan_id: 1004 vlan_raw_device: clients ipv6_addrgen: false forward: true dhcp-1.isp.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:6/56 - 10.128.10.6/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:210:1:1::1/56 - 10.210.1.1/16 ens20: null clients: bridge_vlan_aware: true bridge_ports: - ens20 bridge_vids: - 1000-1004 bridge_disable_pvid: true ipv6_addrgen: false forward: true client-0: addresses: - 100.64.0.2/27 vlan_id: 1000 vlan_raw_device: clients client-1: addresses: - 100.64.0.34/27 vlan_id: 1001 vlan_raw_device: clients client-2: addresses: - 100.64.0.66/27 vlan_id: 1002 vlan_raw_device: clients client-3: addresses: - 100.64.0.98/27 vlan_id: 1003 vlan_raw_device: clients client-4: addresses: - 100.64.0.130/27 vlan_id: 1004 vlan_raw_device: clients dhcp-2.isp.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:106/56 - 10.128.10.106/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:210:1:2::1/56 - 10.210.1.2/16 ens20: null clients: bridge_vlan_aware: true bridge_ports: - ens20 bridge_vids: - 1000-1004 bridge_disable_pvid: true ipv6_addrgen: false forward: true client-0: addresses: - 100.64.0.3/27 vlan_id: 1000 vlan_raw_device: clients client-1: addresses: - 100.64.0.35/27 vlan_id: 1001 vlan_raw_device: clients client-2: addresses: - 100.64.0.67/27 vlan_id: 1002 vlan_raw_device: clients client-3: addresses: - 100.64.0.99/27 vlan_id: 1003 vlan_raw_device: clients client-4: addresses: - 100.64.0.131/27 vlan_id: 1004 vlan_raw_device: clients radius-1.isp.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:7/56 - 10.128.10.7/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:210:1:1::1/56 - 10.210.1.1/16 radius-2.isp.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:107/56 - 10.128.10.107/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:210:1:2::1/56 ldap-1.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:8/56 - 10.128.10.8/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:1:3::1/56 - 10.206.1.3/16 ldap-2.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:108/56 - 10.128.10.108/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:1:4::1/56 - 10.206.1.4/16 ntp-1.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:9/56 - 10.128.10.9/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:1:5::1/56 - 10.206.1.5/16 ntp-2.int.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:109/56 - 10.128.10.109/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:206:1:6::1/56 - 10.206.1.6/16 prometheus-1.monit.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:10/56 - 10.128.10.10/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:204:1:1::1/56 - 10.204.1.1/16 prometheus-2.monit.infra.auro.re: ens18: addresses: - 2a09:6840:128::10:110/56 - 10.128.10.110/16 gateways: "{{ ifupdown2__gateways.adm }}" ens19: addresses: - 2a09:6840:204:1:2::1/56 - 10.204.1.2/16 ifupdown2__interfaces: "{{ ifupdown2__hosts[inventory_hostname] }}" roles: - ifupdown2 ...