[interfaces] use is defined
							parent
							
								
									4c132e6d30
								
							
						
					
					
						commit
						3b9b979665
					
				| 
						 | 
					@ -12,27 +12,23 @@ iface {{ srv_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ srv_dns }}
 | 
						dns-nameservers {{ srv_dns }}
 | 
				
			||||||
	dns-search crans.org
 | 
						dns-search crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias srv
 | 
						up /sbin/ip link set $IFACE alias srv
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if srv_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if srv_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[srv_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[srv_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ srv_iface.stdout }} inet6 static
 | 
					iface {{ srv_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ srv.ipv6[0].address }}/{{ srv.ipv6[0].prefix }}
 | 
						address {{ srv.ipv6[0].address }}/{{ srv.ipv6[0].prefix }}
 | 
				
			||||||
	autoconf 1
 | 
						autoconf 1
 | 
				
			||||||
	accept_ra 2
 | 
						accept_ra 2
 | 
				
			||||||
	up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
						up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if srv_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if srv_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[srv_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[srv_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,27 +12,23 @@ iface {{ ens_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ ens_dns }}
 | 
						dns-nameservers {{ ens_dns }}
 | 
				
			||||||
	dns-search crans.org
 | 
						dns-search crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias ens
 | 
						up /sbin/ip link set $IFACE alias ens
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if ens_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if ens_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[ens_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[ens_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ ens_iface.stdout }} inet6 static
 | 
					iface {{ ens_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ ens.ipv6[0].address }}/{{ ens.ipv6[0].prefix }}
 | 
						address {{ ens.ipv6[0].address }}/{{ ens.ipv6[0].prefix }}
 | 
				
			||||||
	autoconf 1
 | 
						autoconf 1
 | 
				
			||||||
	accept_ra 2
 | 
						accept_ra 2
 | 
				
			||||||
	up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
						up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if ens_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if ens_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[ens_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[ens_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,24 +11,20 @@ iface {{ adm_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ adm_dns }}
 | 
						dns-nameservers {{ adm_dns }}
 | 
				
			||||||
	dns-search adm.crans.org
 | 
						dns-search adm.crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias adm
 | 
						up /sbin/ip link set $IFACE alias adm
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if adm_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if adm_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[adm_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[adm_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ adm_iface.stdout }} inet6 static
 | 
					iface {{ adm_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ adm.ipv6[0].address }}/{{ adm.ipv6[0].prefix }}
 | 
						address {{ adm.ipv6[0].address }}/{{ adm.ipv6[0].prefix }}
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if adm_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if adm_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[adm_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[adm_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,24 +11,20 @@ iface {{ borne_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ borne_dns }}
 | 
						dns-nameservers {{ borne_dns }}
 | 
				
			||||||
	dns-search borne.crans.org
 | 
						dns-search borne.crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias borne
 | 
						up /sbin/ip link set $IFACE alias borne
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if borne_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if borne_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[borne_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[borne_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ borne_iface.stdout }} inet6 static
 | 
					iface {{ borne_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ borne.ipv6[0].address }}/{{ borne.ipv6[0].prefix }}
 | 
						address {{ borne.ipv6[0].address }}/{{ borne.ipv6[0].prefix }}
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if borne_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if borne_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[borne_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[borne_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,24 +11,20 @@ iface {{ switch_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ switch_dns }}
 | 
						dns-nameservers {{ switch_dns }}
 | 
				
			||||||
	dns-search switch.crans.org
 | 
						dns-search switch.crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias switch
 | 
						up /sbin/ip link set $IFACE alias switch
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if switch_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if switch_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[switch_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[switch_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ switch_iface.stdout }} inet6 static
 | 
					iface {{ switch_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ switch.ipv6[0].address }}/{{ switch.ipv6[0].prefix }}
 | 
						address {{ switch.ipv6[0].address }}/{{ switch.ipv6[0].prefix }}
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if switch_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if switch_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[switch_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[switch_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,24 +12,20 @@ iface {{ fil_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ fil_dns }}
 | 
						dns-nameservers {{ fil_dns }}
 | 
				
			||||||
	dns-search fil.crans.org
 | 
						dns-search fil.crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias fil
 | 
						up /sbin/ip link set $IFACE alias fil
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if fil_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if fil_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[fil_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[fil_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ fil_iface.stdout }} inet6 static
 | 
					iface {{ fil_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ fil.ipv6[0].address }}/{{ fil.ipv6[0].prefix }}
 | 
						address {{ fil.ipv6[0].address }}/{{ fil.ipv6[0].prefix }}
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if fil_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if fil_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[fil_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[fil_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,27 +12,23 @@ iface {{ adh_iface.stdout }} inet static
 | 
				
			||||||
	dns-nameservers {{ adh_dns }}
 | 
						dns-nameservers {{ adh_dns }}
 | 
				
			||||||
	dns-search crans.org
 | 
						dns-search crans.org
 | 
				
			||||||
	up /sbin/ip link set $IFACE alias adh
 | 
						up /sbin/ip link set $IFACE alias adh
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_4 is defined %}
 | 
				
			||||||
{% if 'sup_if_4' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if adh_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
					{% if adh_iface.stdout in ansible_local.interfaces.sup_if_4 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_4[adh_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_4[adh_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
iface {{ adh_iface.stdout }} inet6 static
 | 
					iface {{ adh_iface.stdout }} inet6 static
 | 
				
			||||||
	address {{ adh.ipv6[0].address }}/{{ adh.ipv6[0].prefix }}
 | 
						address {{ adh.ipv6[0].address }}/{{ adh.ipv6[0].prefix }}
 | 
				
			||||||
	autoconf 1
 | 
						autoconf 1
 | 
				
			||||||
	accept_ra 2
 | 
						accept_ra 2
 | 
				
			||||||
	up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
						up /sbin/sysctl net/ipv6/conf/$IFACE/accept_ra_defrtr=1
 | 
				
			||||||
{% if 'interfaces' in ansible_local %}
 | 
					{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
				
			||||||
{% if 'sup_if_6' in ansible_local.interfaces %}
 | 
					 | 
				
			||||||
{% if adh_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
					{% if adh_iface.stdout in ansible_local.interfaces.sup_if_6 %}
 | 
				
			||||||
{% for line in ansible_local.interfaces.sup_if_6[adh_iface.stdout] %}
 | 
					{% for line in ansible_local.interfaces.sup_if_6[adh_iface.stdout] %}
 | 
				
			||||||
	{{ line }}
 | 
						{{ line }}
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue