From 937238d26e3e1ec33a2786bfc9376f9f05e623f2 Mon Sep 17 00:00:00 2001 From: Tobias Hachmer Date: Tue, 3 Oct 2017 20:43:23 +0200 Subject: [PATCH] Role service-radvd: update handlers --- roles/service-radvd/handlers/main.yml | 9 +++++++++ roles/service-radvd/tasks/main.yml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 roles/service-radvd/handlers/main.yml diff --git a/roles/service-radvd/handlers/main.yml b/roles/service-radvd/handlers/main.yml new file mode 100644 index 0000000..6bc9334 --- /dev/null +++ b/roles/service-radvd/handlers/main.yml @@ -0,0 +1,9 @@ +--- +- name: reload systemd + systemd: + daemon_reload: yes + +- name: restart systemd unit radvd + systemd: + name: radvd + state: restarted diff --git a/roles/service-radvd/tasks/main.yml b/roles/service-radvd/tasks/main.yml index 42c4ba7..2197bec 100644 --- a/roles/service-radvd/tasks/main.yml +++ b/roles/service-radvd/tasks/main.yml @@ -3,15 +3,15 @@ apt: name: radvd state: present + notify: reload systemd - name: enable systemd unit radvd systemd: name: radvd enabled: yes - daemon_reload: yes - name: configure radvd template: src: radvd.conf.j2 dest: /etc/radvd.conf - #notify: restart radvd + notify: restart systemd unit radvd