Commit 71882d3c authored by nanahira's avatar nanahira

make it possible to single run

parent 656896c8
...@@ -78,17 +78,14 @@ ...@@ -78,17 +78,14 @@
- name: pppoe password - name: pppoe password
become: true become: true
blockinfile: blockinfile:
path: /etc/ppp/pap-secrets path: /etc/ppp/{{item}}-secrets
block: | block: |
"{{item.username}}" * "{{item.password}}" {% for user in pppoeUsers %}
with_items: '{{pppoeUsers}}' "{{user.username}}" * "{{user.password}}"
- name: pppoe password {% endfor %}
become: true with_items:
blockinfile: - pap
path: /etc/ppp/chap-secrets - chap
block: |
"{item.username}}" * "{{item.password}}"
with_items: '{{pppoeUsers}}'
- name: pppoe post scripts - name: pppoe post scripts
become: true become: true
template: template:
...@@ -103,3 +100,13 @@ ...@@ -103,3 +100,13 @@
vars: vars:
ppp: '{{item}}' ppp: '{{item}}'
with_items: '{{ppps}}' with_items: '{{ppps}}'
- name: accept ra
become: true
blockinfile:
path: /etc/sysctl.conf
block: |
{% for br in bridges %}
{% if br.dhcpv6 %}
net.ipv6.conf.{{br.name}}.accept_ra = 2
{% endif %}
{% endfor %}
...@@ -14,14 +14,6 @@ ...@@ -14,14 +14,6 @@
- my-card.in - my-card.in
- mius.pro - mius.pro
tasks: tasks:
- name: accept ra
become: true
sysctl:
name: net.ipv6.conf.{{item.name}}.accept_ra
value: 2
sysctl_set: true
with_items: '{{bridges}}'
when: item.dhcpv6
- name: dnsmasq directory - name: dnsmasq directory
file: file:
name: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns' name: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns'
......
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