Commit f2fd5c95 authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Rafael Monnerat

playbook: Add Router Advertisement re6stnet configuration role

parent de5d5204
---
dependencies:
- re6stnet
- role: package
package_name: dnsmasq
package_state: present
---
- name: stop and disable dnsmasq (as it will be started by re6st)
service:
name: dnsmasq
state: stopped
enabled: no
- name: add dnsmasq in re6stnet config
lineinfile:
dest: /etc/re6stnet/re6stnet.conf
insertafter: '^key'
line: 'daemon "exec dnsmasq -k8 - -i $re6stnet_iface -F ${re6stnet_subnet%/*},ra-only,${re6stnet_subnet#*/},1d"'
notify:
- restart re6stnet
- name: configure re6stnet main interface
lineinfile:
dest: /etc/re6stnet/re6stnet.conf
insertafter: '^daemon'
line: 'main-interface {{ ansible_default_ipv4.interface }}'
notify:
- restart re6stnet
- name: configure re6stnet additional interface
lineinfile:
dest: /etc/re6stnet/re6stnet.conf
insertafter: '^main-interface'
line: 'interface {{ ansible_default_ipv4.interface }}'
notify:
- restart re6stnet
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