Compare commits
No commits in common. "71b1658ce17f5ee440095b6a69707aa7b74b3e1d" and "9af8e490a3240129089d6711ad21450ac5c60953" have entirely different histories.
71b1658ce1
...
9af8e490a3
@ -70,12 +70,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- networking
|
- networking
|
||||||
|
|
||||||
- name: ensure interfaces.d directory exists
|
|
||||||
file:
|
|
||||||
path: /etc/network/interfaces.d
|
|
||||||
state: directory
|
|
||||||
when: wanted_ip4 is defined or wanted_ip6 is defined
|
|
||||||
|
|
||||||
- name: configure watchdog
|
- name: configure watchdog
|
||||||
template:
|
template:
|
||||||
src: watchdog.conf.j2
|
src: watchdog.conf.j2
|
||||||
|
@ -51,15 +51,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- pkg
|
- pkg
|
||||||
|
|
||||||
- name: install bridge (alpine)
|
|
||||||
apk:
|
|
||||||
name:
|
|
||||||
- bridge
|
|
||||||
state: present
|
|
||||||
when: bridged_network is defined
|
|
||||||
tags:
|
|
||||||
- pkg
|
|
||||||
|
|
||||||
- name: install ssmtp (alpine)
|
- name: install ssmtp (alpine)
|
||||||
apk:
|
apk:
|
||||||
name:
|
name:
|
||||||
|
@ -7,31 +7,19 @@ iface lo inet loopback
|
|||||||
|
|
||||||
# The main interface
|
# The main interface
|
||||||
auto eth0
|
auto eth0
|
||||||
{% if bridged_network is defined and bridged_network %}
|
|
||||||
auto br0
|
|
||||||
iface br0
|
|
||||||
requires eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
|
||||||
bridge-ports eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
|
||||||
bridge-fd 0
|
|
||||||
bridge-stp off
|
|
||||||
{% else %}
|
|
||||||
iface eth0
|
|
||||||
{% endif %}
|
|
||||||
{% if wanted_ip4 is defined %}
|
{% if wanted_ip4 is defined %}
|
||||||
|
iface eth0 inet static
|
||||||
address {{ wanted_ip4 }}/24
|
address {{ wanted_ip4 }}/24
|
||||||
gateway {{ local_network.gateway }}
|
gateway {{ local_network.gateway }}
|
||||||
{% else %}
|
{% else %}
|
||||||
use dhcp
|
iface eth0 inet dhcp
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if wanted_ip6 is defined %}
|
{% if wanted_ip6 is defined %}
|
||||||
|
iface eth0 inet6 static
|
||||||
{% if local_network.gateway6 is defined %}
|
{% if local_network.gateway6 is defined %}
|
||||||
address {{ wanted_ip6 }}/64
|
address {{ wanted_ip6 }}/64
|
||||||
gateway {{ local_network.gateway6 }}
|
gateway {{ local_network.gateway6 }}
|
||||||
{% if bridged_network is defined and bridged_network %}
|
|
||||||
up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra
|
|
||||||
{% else %}
|
|
||||||
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
|
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
address {{ wanted_ip6 }}/128
|
address {{ wanted_ip6 }}/128
|
||||||
post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99
|
post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99
|
||||||
|
Loading…
x
Reference in New Issue
Block a user