ansible/playbooks/ifupdown2.yml

408 lines
11 KiB
YAML
Raw Normal View History

2022-08-27 04:26:14 +02:00
#!/usr/bin/env ansible-playbook
---
- hosts:
2023-01-07 02:25:53 +01:00
- vm_network
2022-08-27 04:26:14 +02:00
vars:
2023-01-07 02:25:53 +01:00
ifupdown2__gateways:
adm:
- 2a09:6840:128::254
- 10.128.0.254
int:
- 2a09:6840:206::1
- 10.206.0.1
2022-08-27 04:26:14 +02:00
# TODO: netbox
ifupdown2__hosts:
2023-01-07 02:25:53 +01:00
edge-1.rtr.infra.auro.re:
2023-03-27 21:51:07 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:2/56
- 10.128.10.2/16
2023-03-27 21:51:07 +02:00
crans0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
zayo0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
rezel0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:1:1::1/56
- 10.203.1.1/16
2023-03-27 21:51:07 +02:00
viarezo0:
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
router0:
2023-03-25 17:56:19 +01:00
addresses:
- 2a09:6840:129::10:2/56
- 10.129.10.2/16
2023-01-07 02:25:53 +01:00
edge-2.rtr.infra.auro.re:
2023-03-27 21:51:07 +02:00
adm0:
2022-08-27 04:26:14 +02:00
addresses:
- 2a09:6840:128::10:102/56
2023-01-07 02:25:53 +01:00
- 10.128.10.102/16
2023-03-27 21:51:07 +02:00
crans0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
zayo0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
rezel0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:1:2::1/56
- 10.203.1.2/16
2023-03-27 21:51:07 +02:00
viarezo0:
ipv6_addrgen: false
2023-03-27 21:51:07 +02:00
router0:
2023-03-25 17:56:19 +01:00
addresses:
- 2a09:6840:129::10:102/56
- 10.129.10.102/16
2022-08-27 10:21:04 +02:00
dns-1.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-08-27 10:21:04 +02:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:3/56
- 10.128.10.3/16
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:206:0:2::1/56
- 10.206.0.2/16
gateways: "{{ ifupdown2__gateways.int }}"
2023-01-07 02:25:53 +01:00
dns-2.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:103/56
- 10.128.10.103/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:206:0:3::1/56
- 10.206.0.3/16
ssh-1.mgmt.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:1/56
- 10.128.10.1/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
pub0:
addresses:
- 2a09:6840:207:1:2::1/56
2023-01-07 02:25:53 +01:00
- 45.66.108.2/16
2023-03-28 20:36:46 +02:00
mgmt0:
addresses:
- 2a09:6840:211:1:1::1/56
- 10.211.1.1/16
2023-01-07 02:25:53 +01:00
ssh-2.mgmt.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:101/56
- 10.128.10.101/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
pub0:
- 2a09:6840:207:1:3::1/56
2023-01-07 02:25:53 +01:00
- 45.66.108.3/16
2023-03-28 20:36:46 +02:00
mgmt0:
addresses:
- 2a09:6840:211:1:2::1/56
- 10.211.1.2/16
2023-01-07 02:25:53 +01:00
infra-1.rtr.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:4/56
- 10.128.10.4/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:1:3::1/56
- 10.203.1.3/16
2023-03-28 20:36:46 +02:00
monit0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
ap0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
pub0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
bmc0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
hyperv0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
isp0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
mgmt0:
ipv6_addrgen: false
2023-01-07 02:25:53 +01:00
infra-2.rtr.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:104/56
- 10.128.10.104/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:4::1/64
- 10.203.1.4/16
2023-03-28 20:36:46 +02:00
monit0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
ap0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
pub0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
bmc0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
hyperv0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
isp0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
mgmt0:
ipv6_addrgen: false
2023-01-07 02:25:53 +01:00
isp-1.rtr.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-08-27 10:21:04 +02:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:5/56
- 10.128.10.5/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:1:5::1/56
- 10.203.1.5/16
2023-03-28 20:36:46 +02:00
trunk0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
clients0:
2022-08-27 10:21:04 +02:00
bridge_vlan_aware: true
bridge_ports:
2023-03-28 20:36:46 +02:00
- trunk0
2022-08-27 10:21:04 +02:00
bridge_vids:
- 1000-1004
2023-01-07 02:25:53 +01:00
bridge_disable_pvid: true
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client0:
2022-08-27 10:21:04 +02:00
vlan_id: 1000
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client1:
2022-08-27 10:21:04 +02:00
vlan_id: 1001
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client2:
2022-08-27 10:21:04 +02:00
vlan_id: 1002
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client3:
2022-08-27 10:21:04 +02:00
vlan_id: 1003
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client4:
2022-08-27 10:21:04 +02:00
vlan_id: 1004
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
isp-2.rtr.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-08-27 10:21:04 +02:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:105/56
- 10.128.10.105/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
backbone0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:203:1:6::1/56
- 10.203.1.6/16
2023-03-28 20:36:46 +02:00
trunk0:
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
clients0:
2022-08-27 10:21:04 +02:00
bridge_vlan_aware: true
bridge_ports:
2023-03-28 20:36:46 +02:00
- trunk0
2022-08-27 10:21:04 +02:00
bridge_vids:
- 1000-1004
bridge_disable_pvid: true
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client0:
2022-08-27 10:21:04 +02:00
vlan_id: 1000
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client1:
2022-08-27 10:21:04 +02:00
vlan_id: 1001
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client2:
2022-08-27 10:21:04 +02:00
vlan_id: 1002
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client3:
2022-08-27 10:21:04 +02:00
vlan_id: 1003
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client4:
2022-08-27 10:21:04 +02:00
vlan_id: 1004
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
ipv6_addrgen: false
dhcp-1.isp.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-08-27 10:21:04 +02:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:6/56
- 10.128.10.6/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
isp0:
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:210:1:1::1/56
- 10.210.1.1/16
2023-03-28 20:36:46 +02:00
trunk0: null
clients0:
2022-08-27 10:21:04 +02:00
bridge_vlan_aware: true
bridge_ports:
2023-03-28 20:36:46 +02:00
- trunk0
2022-08-27 10:21:04 +02:00
bridge_vids:
- 1000-1004
bridge_disable_pvid: true
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client0:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.2/27
2022-08-27 10:21:04 +02:00
vlan_id: 1000
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client1:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.34/27
2022-08-27 10:21:04 +02:00
vlan_id: 1001
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client2:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.66/27
2022-08-27 10:21:04 +02:00
vlan_id: 1002
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client3:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.98/27
2022-08-27 10:21:04 +02:00
vlan_id: 1003
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client4:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.130/27
2022-08-27 10:21:04 +02:00
vlan_id: 1004
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
dhcp-2.isp.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-08-27 10:21:04 +02:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:106/56
- 10.128.10.106/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
isp0:
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:210:1:2::1/56
- 10.210.1.2/16
2023-03-28 20:36:46 +02:00
trunk0: null
clients0:
2022-08-27 10:21:04 +02:00
bridge_vlan_aware: true
bridge_ports:
2023-03-28 20:36:46 +02:00
- trunk0
2022-08-27 10:21:04 +02:00
bridge_vids:
- 1000-1004
bridge_disable_pvid: true
ipv6_addrgen: false
2023-03-28 20:36:46 +02:00
client0:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.3/27
2022-08-27 10:21:04 +02:00
vlan_id: 1000
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client1:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.35/27
2022-08-27 10:21:04 +02:00
vlan_id: 1001
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client2:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.67/27
2022-08-27 10:21:04 +02:00
vlan_id: 1002
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client3:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.99/27
2022-08-27 10:21:04 +02:00
vlan_id: 1003
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
client4:
2023-01-07 02:25:53 +01:00
addresses:
- 100.64.0.131/27
2022-08-27 10:21:04 +02:00
vlan_id: 1004
2023-03-28 20:36:46 +02:00
vlan_raw_device: clients0
2023-01-07 02:25:53 +01:00
radius-1.isp.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:7/56
- 10.128.10.7/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
isp0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:210:1:1::1/56
2023-03-28 20:36:46 +02:00
- 10.210.1.3/16
2023-01-07 02:25:53 +01:00
radius-2.isp.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:107/56
- 10.128.10.107/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
isp0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:210:1:2::1/56
2023-03-28 20:36:46 +02:00
- 10.210.1.4/16
2023-01-07 02:25:53 +01:00
ldap-1.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-12-22 15:45:07 +01:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:8/56
- 10.128.10.8/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
int0:
2022-12-22 15:45:07 +01:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:206:1:3::1/56
- 10.206.1.3/16
ldap-2.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2022-12-22 15:45:07 +01:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:128::10:108/56
- 10.128.10.108/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
int0:
2022-12-22 15:45:07 +01:00
addresses:
2023-01-07 02:25:53 +01:00
- 2a09:6840:206:1:4::1/56
- 10.206.1.4/16
ntp-1.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:9/56
- 10.128.10.9/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:206:1:5::1/56
- 10.206.1.5/16
ntp-2.int.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:109/56
- 10.128.10.109/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
int0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:206:1:6::1/56
- 10.206.1.6/16
prometheus-1.monit.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:10/56
- 10.128.10.10/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
monit0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:204:1:1::1/56
- 10.204.1.1/16
prometheus-2.monit.infra.auro.re:
2023-03-28 20:36:46 +02:00
adm0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:128::10:110/56
- 10.128.10.110/16
gateways: "{{ ifupdown2__gateways.adm }}"
2023-03-28 20:36:46 +02:00
monit0:
2023-01-07 02:25:53 +01:00
addresses:
- 2a09:6840:204:1:2::1/56
- 10.204.1.2/16
2022-08-27 04:26:14 +02:00
ifupdown2__interfaces: "{{ ifupdown2__hosts[inventory_hostname] }}"
roles:
- ifupdown2
...