Commit 71882d3c authored by nanahira's avatar nanahira

make it possible to single run

parent 656896c8
......@@ -78,17 +78,14 @@
- name: pppoe password
become: true
blockinfile:
path: /etc/ppp/pap-secrets
path: /etc/ppp/{{item}}-secrets
block: |
"{{item.username}}" * "{{item.password}}"
with_items: '{{pppoeUsers}}'
- name: pppoe password
become: true
blockinfile:
path: /etc/ppp/chap-secrets
block: |
"{item.username}}" * "{{item.password}}"
with_items: '{{pppoeUsers}}'
{% for user in pppoeUsers %}
"{{user.username}}" * "{{user.password}}"
{% endfor %}
with_items:
- pap
- chap
- name: pppoe post scripts
become: true
template:
......@@ -103,3 +100,13 @@
vars:
ppp: '{{item}}'
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 @@
- my-card.in
- mius.pro
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
file:
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