summaryrefslogtreecommitdiff
path: root/roles/raspios/image/templates/firstrun.sh.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/raspios/image/templates/firstrun.sh.j2')
-rw-r--r--roles/raspios/image/templates/firstrun.sh.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/raspios/image/templates/firstrun.sh.j2 b/roles/raspios/image/templates/firstrun.sh.j2
index 4d3978c8..bc35b764 100644
--- a/roles/raspios/image/templates/firstrun.sh.j2
+++ b/roles/raspios/image/templates/firstrun.sh.j2
@@ -48,6 +48,8 @@ auto {{ network.primary.name }}
iface {{ network.primary.name }} inet dhcp
{% else %}
iface {{ network.primary.name }} inet static
+ up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
+ up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
address {{ network.primary.address | ansible.utils.ipaddr('address') }}
netmask {{ network.primary.address | ansible.utils.ipaddr('netmask') }}
gateway {{ network.primary.gateway }}