dhcpd: remove dhcpd__failover_peer
This commit is contained in:
parent
6d66e56b15
commit
1aba1e5606
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue