ifupdown2: add playbook

This commit is contained in:
jeltz 2022-08-27 04:26:14 +02:00
parent 15e2db49f3
commit 1281a6a51a
Signed by: jeltz
GPG Key ID: 800882B66C0C3326
1 changed files with 32 additions and 0 deletions

32
playbooks/ifupdown2.yml Executable file
View File

@ -0,0 +1,32 @@
#!/usr/bin/env ansible-playbook
---
- hosts:
- ntp-1.int.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
ifupdown2__interfaces: "{{ ifupdown2__hosts[inventory_hostname] }}"
roles:
- ifupdown2
- hosts:
- ntp-1.int.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
...