roles/dhcpcd: Use a list for allow/deny interfaces

Using a list to specify the values for the `allowinterfaces` and
`denyinterfaces` parameters in `dhcpcd.conf` makes the configuration
policy cleaner and more type-safe.
jenkins-master
Dustin 2018-07-23 17:12:33 -05:00
parent 620fcc79b8
commit 1302cd8825
1 changed files with 2 additions and 2 deletions

View File

@ -14,11 +14,11 @@ controlgroup {{ dhcpcd_controlgroup }}
{% endif %}
{% if dhcpcd_allow_interfaces is defined %}
allowinterfaces {{ dhcpcd_allow_interfaces }}
allowinterfaces {{ dhcpcd_allow_interfaces|join(' ')}}
{% endif %}
{% if dhcpcd_deny_interfaces is defined %}
denyinterfaces {{ dhcpcd_deny_interfaces }}
denyinterfaces {{ dhcpcd_deny_interfaces|join(' ') }}
{% endif %}
# Inform the DHCP server of our hostname for DDNS.