[interfaces] Add IPv6 gateways
							parent
							
								
									fa41bdb816
								
							
						
					
					
						commit
						a65076dc28
					
				| 
						 | 
				
			
			@ -7,10 +7,12 @@
 | 
			
		|||
        id: 2
 | 
			
		||||
        gateway: 185.230.79.99
 | 
			
		||||
        dns: 185.230.79.99
 | 
			
		||||
        gateway_v6: 2a0c:700:2::ff:fe00:9902
 | 
			
		||||
      - name: srv_nat
 | 
			
		||||
        id: 3
 | 
			
		||||
        gateway: 172.16.3.99
 | 
			
		||||
        dns: 172.16.3.99
 | 
			
		||||
        gateway_v6: 2a0c:700:3::ff:fe00:9903
 | 
			
		||||
      - name: san
 | 
			
		||||
        id: 4
 | 
			
		||||
      - name: adm
 | 
			
		||||
| 
						 | 
				
			
			@ -23,9 +25,11 @@
 | 
			
		|||
        id: 12
 | 
			
		||||
        gateway: 185.230.78.99
 | 
			
		||||
        dns: 185.230.78.99
 | 
			
		||||
        gateway_v6: 2a0c:700:12::ff:fe00:9912
 | 
			
		||||
      - name: adh_nat
 | 
			
		||||
        id: 13
 | 
			
		||||
        gateway: 100.64.0.99
 | 
			
		||||
        dns: 100.64.0.99
 | 
			
		||||
        gateway_v6: 2a0c:700:13::ff:fe00:9913
 | 
			
		||||
  roles:
 | 
			
		||||
    - interfaces
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,9 @@ iface {{ interfaces[item.name] }} inet6 static
 | 
			
		|||
{% for ip in (ips | ipv6) %}
 | 
			
		||||
	address {{ ip }}/64
 | 
			
		||||
{% endfor %}
 | 
			
		||||
{% if item.gateway_v6 is defined %}
 | 
			
		||||
	gateway {{ item.gateway_v6 }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if ansible_local.interfaces.sup_if_6 is defined %}
 | 
			
		||||
{% if interfaces[item.name] in ansible_local.interfaces.sup_if_6 %}
 | 
			
		||||
{% for line in ansible_local.interfaces.sup_if_6[interfaces[item.name]] %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue