Add IPv4 default router if found in Ansible facts
This commit is contained in:
parent
7dfe3855ca
commit
f5fec411de
@ -192,6 +192,7 @@ dhcpd_subnets: [ '{{ dhcpd_subnet_default[dhcpd_ipversion] }}' ]
|
|||||||
dhcpd_subnet_default:
|
dhcpd_subnet_default:
|
||||||
'4':
|
'4':
|
||||||
subnet: '{{ ansible_default_ipv4.network + "/" + ansible_default_ipv4.netmask }}'
|
subnet: '{{ ansible_default_ipv4.network + "/" + ansible_default_ipv4.netmask }}'
|
||||||
|
routers: '{{ ansible_default_ipv4.gateway | default("") }}'
|
||||||
comment: 'Generated automatically by Ansible'
|
comment: 'Generated automatically by Ansible'
|
||||||
'6':
|
'6':
|
||||||
subnet: '{{ ansible_default_ipv6.address + "/" + ansible_default_ipv6.prefix }}'
|
subnet: '{{ ansible_default_ipv6.address + "/" + ansible_default_ipv6.prefix }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user