exit: support custom VRF imports
Ten minutes to set up and ten hours to convince Ansible to not be quite so retarded. The list2dict filter seems to be the (or another) missing piece. Now let’s rewrite everything else using it. Or not.
This commit is contained in:
		
							parent
							
								
									99aef43574
								
							
						
					
					
						commit
						82b10e8133
					
				
					 4 changed files with 60 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
- name: Install keepalived
 | 
			
		||||
  import_tasks: keepalived.yml
 | 
			
		||||
 | 
			
		||||
- name: Configure relay for old DHCP server
 | 
			
		||||
- name: Configure DHCP relays
 | 
			
		||||
  template:
 | 
			
		||||
    dest: '/etc/default/isc-dhcp-relay-{{ prefixes | selectattr("prefix", "==", item.0 | ipaddr("network/prefix")) | map(attribute="vrf.name") | first }}'
 | 
			
		||||
    src: isc-dhcp-relay.j2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue