#!/usr/bin/env ansible-playbook --- - hosts: - ntp-1.int.infra.auro.re - dns-1.int.infra.auro.re - dhcp-1.isp.auro.re - dhcp-2.isp.auro.re - isp-1.rtr.infra.auro.re - isp-2.rtr.infra.auro.re - radius-1.isp.infra.auro.re vars: # TODO: netbox ifupdown2__hosts: ntp-1.int.infra.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::203/56 - 10.128.0.203/16 radius-1.isp.infra.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::208/56 - 10.128.0.208/16 dns-1.int.infra.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::127/56 - 10.128.0.127/16 dhcp-1.isp.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::204/56 - 10.128.0.204/16 ens19: null clients: bridge_vlan_aware: true bridge_ports: - ens19 bridge_vids: - 1000-1004 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.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::91/56 - 10.128.0.91/16 ens19: null clients: bridge_vlan_aware: true bridge_ports: - ens19 bridge_vids: - 1000-1004 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 isp-1.rtr.infra.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::255/56 - 10.128.0.255/16 ens19: null clients: bridge_vlan_aware: true bridge_ports: - ens19 bridge_vids: - 1000-1004 bridge_disable_pvid: true forward: true ipv6_addrgen: false client-0: forward: true vlan_id: 1000 vlan_raw_device: clients ipv6_addrgen: false client-1: forward: true vlan_id: 1001 vlan_raw_device: clients ipv6_addrgen: false client-2: forward: true vlan_id: 1002 vlan_raw_device: clients ipv6_addrgen: false client-3: forward: true vlan_id: 1003 vlan_raw_device: clients ipv6_addrgen: false client-4: forward: true vlan_id: 1004 vlan_raw_device: clients ipv6_addrgen: false isp-2.rtr.infra.auro.re: ens18: gateways: - 2a09:6840:128::254 - 10.128.0.254 addresses: - 2a09:6840:128::158/56 - 10.128.0.158/16 ens19: null clients: bridge_vlan_aware: true bridge_ports: - ens19 bridge_vids: - 1000-1004 client-0: forward: true vlan_id: 1000 vlan_raw_device: clients ipv6_addrgen: false client-1: forward: true vlan_id: 1001 vlan_raw_device: clients ipv6_addrgen: false client-2: forward: true vlan_id: 1002 vlan_raw_device: clients ipv6_addrgen: false client-3: forward: true vlan_id: 1003 vlan_raw_device: clients ipv6_addrgen: false client-4: forward: true vlan_id: 1004 vlan_raw_device: clients ipv6_addrgen: false ifupdown2__interfaces: "{{ ifupdown2__hosts[inventory_hostname] }}" roles: - ifupdown2 - hosts: - ntp-1.int.infra.auro.re - dns-1.int.infra.auro.re - dhcp-1.isp.auro.re - dhcp-2.isp.auro.re - isp-1.rtr.infra.auro.re - isp-2.rtr.infra.auro.re - radius-1.isp.infra.auro.re vars: resolvconf__nameservers: - 2a09:6840:128::127 - 10.128.0.127 resolvconf__domain: auro.re resolvconf__search: - "{{ inventory_hostname | remove_domain_suffix }}" - auro.re roles: - resolvconf ...