Catching up with current successes
This commit is contained in:
4
roles/ShadowArch/templates/netctl-dhcp.j2
Normal file
4
roles/ShadowArch/templates/netctl-dhcp.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
Description='DHCP wired connection'
|
||||
Interface={{ ipinterface }}
|
||||
Connection=ethernet
|
||||
IP=dhcp
|
7
roles/ShadowArch/templates/netctl-static.j2
Normal file
7
roles/ShadowArch/templates/netctl-static.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
Description='A basic static ethernet connection'
|
||||
Interface={{ ipinterface }}
|
||||
Connection=ethernet
|
||||
IP=static
|
||||
Address=('{{ ip }}/24')
|
||||
Gateway='{{ router }}'
|
||||
DNS=('{{ dns }}')
|
20
roles/ShadowArch/templates/raspbian-static.j2
Normal file
20
roles/ShadowArch/templates/raspbian-static.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
# interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
|
||||
# Please note that this file is written to be used with dhcpcd
|
||||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
||||
|
||||
# Include files from /etc/network/interfaces.d:
|
||||
source-directory /etc/network/interfaces.d
|
||||
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
iface {{ ipinterface }} inet static
|
||||
address {{ ansible_host }}/{{ netmask }}
|
||||
gateway {{ router }}
|
||||
|
||||
auto wlan0
|
||||
allow-hotplug wlan0
|
||||
iface wlan0 inet dhcp
|
||||
wpa-conf /etc/wpa_supplicant.conf
|
||||
|
Reference in New Issue
Block a user