Fix networkd templating integration and access permissions
This commit is contained in:
		@@ -14,17 +14,15 @@ DNS={{ server }}
 | 
			
		||||
{% if item.value.bond is defined %}
 | 
			
		||||
Bond={{ item.value.bond }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if item.value.dhcp | default(false) %}
 | 
			
		||||
 | 
			
		||||
Gateway={{ item.value.gateway | ansible.netcommon.ipaddr('address') }}
 | 
			
		||||
{% for address in item.value.addresses %}
 | 
			
		||||
Address={{ address | ansible.netcommon.ipaddr('host/prefix') }}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% for interface in skylab_networking.interfaces.keys() %}
 | 
			
		||||
{% if interface.startswith(item.key) and interface.partition('.')[2] | number %}
 | 
			
		||||
{% if interface.startswith(item.key) and interface.partition('.')[2] | regex_search('^[0-9]{1,4}$') and interface != item.key %}
 | 
			
		||||
VLAN={{ interface }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user