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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user