Merge pull request #15 from drybjed/fix-templating-error
Fix templating error with no IPv6 network present
This commit is contained in:
commit
4052e5e800
@ -15,6 +15,9 @@ v0.1.1
|
||||
|
||||
- Add support for iPXE boot loader chain-loading and DHCP options. [drybjed]
|
||||
|
||||
- Fix a templating error when IPv6 networking is not present on a host.
|
||||
[drybjed]
|
||||
|
||||
v0.1.0
|
||||
------
|
||||
|
||||
|
@ -242,7 +242,8 @@ dhcpd_subnet_default:
|
||||
routers: '{{ ansible_default_ipv4.gateway | default("") }}'
|
||||
comment: 'Generated automatically by Ansible'
|
||||
'6':
|
||||
subnet: '{{ ansible_default_ipv6.address|default("::1") + "/" + ansible_default_ipv6.prefix }}'
|
||||
subnet: '{{ ((ansible_default_ipv6.address + "/" + ansible_default_ipv6.prefix)
|
||||
if ansible_default_ipv6.address|d() else "") }}'
|
||||
comment: 'Generated automatically by Ansible'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user