Merge pull request #18 from drybjed/no-gateway

Provide empty list of gateways if none are set
This commit is contained in:
Maciej Delmanowski 2015-10-15 17:58:24 +02:00
commit 60a35e6917
2 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Changelog
v0.1.1 v0.1.1
------ ------
*Unreleased* *Released: 2015-10-15*
- Make sure that files specified in ``dhcpd_includes`` list exist before the - Make sure that files specified in ``dhcpd_includes`` list exist before the
DHCP server is restarted. [drybjed] DHCP server is restarted. [drybjed]
@ -21,6 +21,9 @@ v0.1.1
- Change the way role gathers the list of nameservers to avoid issue with - Change the way role gathers the list of nameservers to avoid issue with
``sed`` command in shell module. [drybjed] ``sed`` command in shell module. [drybjed]
- Provide empty list of relay servers if default IPv4 gateway is not defined.
[drybjed]
v0.1.0 v0.1.0
------ ------

View File

@ -44,7 +44,9 @@ dhcpd_base_packages_map:
# .. envvar:: dhcpd_relay_servers # .. envvar:: dhcpd_relay_servers
# #
# List of DHCP servers which should receive the relayed packets # List of DHCP servers which should receive the relayed packets
dhcpd_relay_servers: [ '{{ ansible_default_ipv4.gateway }}' ] dhcpd_relay_servers: [ '{{ ansible_default_ipv4.gateway
if (ansible_default_ipv4.gateway|d())
else [] }}' ]
# .. envvar:: dhcpd_relay_interfaces # .. envvar:: dhcpd_relay_interfaces