ansible/playbooks/keepalived.yml

95 lines
2.2 KiB
YAML
Executable file

#!/usr/bin/env ansible-playbook
---
- hosts:
- isp-1.back.infra.auro.re
- isp-2.back.infra.auro.re
vars:
keepalived__virtual_router_id: 80
keepalived__interface: back0
keepalived__virtual_addresses:
client0:
- 100.64.0.1/27
- 2a09:6841::1/56
- fe80::1/10
client1:
- 100.64.0.33/27
- 2a09:6841:0:1::1/64
- fe80::1/10
client2:
- 100.64.0.65/27
- 2a09:6841:0:2::1/64
- fe80::1/10
client3:
- 100.64.0.97/27
- 2a09:6841:0:3::1/64
- fe80::1/10
client4:
- 100.64.0.129/27
- 2a09:6841:0:4::1/64
- fe80::1/10
keepalived__main: "{{ inventory_hostname_short == 'isp-1' }}"
roles:
- keepalived
- hosts:
- edge-1.back.infra.auro.re
- edge-2.back.infra.auro.re
vars:
keepalived__virtual_router_id: 81
keepalived__interface: back0
keepalived__virtual_addresses:
crans0:
- 185.230.79.254/29
- 2a0c:700:28::2/64
- fe80::1/10
zayo0:
- 2001:1b48:2:103::d7:2/126
- 83.167.52.69/31
- fe80::1/10
keepalived__main: "{{ inventory_hostname_short == 'edge-1' }}"
roles:
- keepalived
- hosts:
- infra-1.back.infra.auro.re
- infra-2.back.infra.auro.re
vars:
keepalived__virtual_router_id: 82
keepalived__interface: back0
keepalived__virtual_addresses:
monit0:
- 10.204.0.1/16
- 2a09:6840:204::1/64
- fe80::1/10
wifi0:
- 10.205.0.1/16
- 2a09:6840:205::1/64
- fe80::1/10
int0:
- 10.206.0.1/16
- 2a09:6840:206::1/64
- fe80::1/10
pub0:
- 10.207.0.1/16
- 2a09:6840:207::1/64
- fe80::1/10
bmc0:
- 10.208.0.1/16
- 2a09:6840:208::1/64
- fe80::1/10
pve0:
- 10.209.0.1/16
- 2a09:6840:209::1/64
- fe80::1/10
isp0:
- 10.210.0.1/16
- 2a09:6840:210::1/64
- fe80::1/10
mgmt0:
- 10.211.0.1/16
- 2a09:6840:211::1/64
- fe80::1/10
keepalived__main: "{{ inventory_hostname_short == 'infra-1' }}"
roles:
- keepalived
...