Role service-radvd: update handlers
This commit is contained in:
parent
7506fae8a5
commit
937238d26e
2 changed files with 11 additions and 2 deletions
9
roles/service-radvd/handlers/main.yml
Normal file
9
roles/service-radvd/handlers/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- name: reload systemd
|
||||||
|
systemd:
|
||||||
|
daemon_reload: yes
|
||||||
|
|
||||||
|
- name: restart systemd unit radvd
|
||||||
|
systemd:
|
||||||
|
name: radvd
|
||||||
|
state: restarted
|
|
@ -3,15 +3,15 @@
|
||||||
apt:
|
apt:
|
||||||
name: radvd
|
name: radvd
|
||||||
state: present
|
state: present
|
||||||
|
notify: reload systemd
|
||||||
|
|
||||||
- name: enable systemd unit radvd
|
- name: enable systemd unit radvd
|
||||||
systemd:
|
systemd:
|
||||||
name: radvd
|
name: radvd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
|
||||||
|
|
||||||
- name: configure radvd
|
- name: configure radvd
|
||||||
template:
|
template:
|
||||||
src: radvd.conf.j2
|
src: radvd.conf.j2
|
||||||
dest: /etc/radvd.conf
|
dest: /etc/radvd.conf
|
||||||
#notify: restart radvd
|
notify: restart systemd unit radvd
|
||||||
|
|
Loading…
Reference in a new issue