You've already forked linux_ws2122_ansible
							
							Initial Commit
This commit is contained in:
		
							
								
								
									
										9
									
								
								roles/networking/templates/10-dhcp.network.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/networking/templates/10-dhcp.network.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
[Match]
 | 
			
		||||
Name={{ item.interface }}
 | 
			
		||||
 | 
			
		||||
[Network]
 | 
			
		||||
DHCP=yes
 | 
			
		||||
Domains={{ inventory_hostname.split(".")[1:] | join('.') | lower }}
 | 
			
		||||
 | 
			
		||||
[DHCP]
 | 
			
		||||
RouteMetric={{ item.route_metric }}
 | 
			
		||||
							
								
								
									
										31
									
								
								roles/networking/templates/10-static.network.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								roles/networking/templates/10-static.network.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
[Match]
 | 
			
		||||
Name={{ item.interface }}
 | 
			
		||||
 | 
			
		||||
[Network]
 | 
			
		||||
Gateway={{ item.ipv4_gateway }}
 | 
			
		||||
{% if item.ipv6_gateway is defined %}
 | 
			
		||||
Gateway={{ item.ipv6_gateway }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if item.ipv6_ignore_ra|default(false) is true %}
 | 
			
		||||
IPv6AcceptRA=false
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% for dns_server in item.dns_servers %}
 | 
			
		||||
DNS={{ dns_server }}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
 | 
			
		||||
[Address]
 | 
			
		||||
Address={{ item.ipv4_address }}{{ item.ipv4_netmask }}
 | 
			
		||||
RouteMetric={{ item.route_metric }}
 | 
			
		||||
{% if item.ipv4_netmask == "/32" %}
 | 
			
		||||
Peer={{ item.ipv4_gateway }}{{ item.ipv4_netmask}}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if item.ipv6_address is defined %}
 | 
			
		||||
[Address]
 | 
			
		||||
Address={{ item.ipv6_address }}{{ item.ipv6_netmask }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if item.ipv6_gateway is defined and not item.ipv6_gateway.startswith("fe80") %}
 | 
			
		||||
[Route]
 | 
			
		||||
Destination={{ item.ipv6_gateway }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
							
								
								
									
										2
									
								
								roles/networking/templates/after-dbus.conf.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								roles/networking/templates/after-dbus.conf.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
After=dbus.sock
 | 
			
		||||
							
								
								
									
										9
									
								
								roles/networking/templates/wpa_supplicant.conf.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/networking/templates/wpa_supplicant.conf.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
ctrl_interface=/run/wpa_supplicant
 | 
			
		||||
ctrl_interface_group=wheel
 | 
			
		||||
update_config=1
 | 
			
		||||
ap_scan=1
 | 
			
		||||
 | 
			
		||||
network={
 | 
			
		||||
  ssid="{{ item.ssid }}"
 | 
			
		||||
  psk="{{ item.psk }}"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user