Commit 917ee19f authored by nanahira's avatar nanahira

fix sysctl things

parent 9b9a9e23
...@@ -172,14 +172,18 @@ ...@@ -172,14 +172,18 @@
name: networking name: networking
enabled: true enabled: true
masked: false masked: false
- name: accept ra - name: sysctl things
become: true become: true
blockinfile: blockinfile:
path: /etc/sysctl.conf path: /etc/sysctl.conf
block: | block: |
{% for br in bridges %} {% for br in bridges %}
net.ipv4.conf.{{br.name}}.rp_filter = 0
net.ipv6.conf.{{br.name}}.accept_ra = 2 net.ipv6.conf.{{br.name}}.accept_ra = 2
{% endfor %} {% endfor %}
{% for ppp in ppps %}
net.ipv6.conf.ppp{{ppp.id}}.accept_ra = 2
{% endfor %}
- name: dhcpv6 directory - name: dhcpv6 directory
file: file:
name: '{{ansible_user_dir}}/nextgen-router/services/dhcpv6' name: '{{ansible_user_dir}}/nextgen-router/services/dhcpv6'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment