dhcpd: remove dhcpd__failover_peer

This commit is contained in:
jeltz 2023-01-07 08:56:12 +01:00
parent 6d66e56b15
commit 1aba1e5606
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -58,11 +58,13 @@
dhcpd__failover: dhcpd__failover:
dhcp-1.isp.infra.auro.re: 10.210.1.1 dhcp-1.isp.infra.auro.re: 10.210.1.1
dhcp-2.isp.infra.auro.re: 10.210.1.2 dhcp-2.isp.infra.auro.re: 10.210.1.2
dhcpd__failover_peer: "{{ dhcpd__failover.keys() dhcpd__failover_address: "{{ dhcpd__failover[inventory_hostname] }}"
| select('!=', inventory_hostname) dhcpd__failover_peer_address: "{{ dhcpd__failover
| dict2items
| selectattr('key', '!=',
inventory_hostname)
| map(attribute='value')
| first }}" | first }}"
dhcpd__failover_address: "{{ dhcpd__failover[dhcpd__failover_peer] }}"
dhcpd__failover_peer_address: "{{ dhcpd__failover[inventory_hostname] }}"
roles: roles:
- dhcpd - dhcpd
... ...