From 1f1b8377c9121162e5797b7d8e39d1676fd41b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 11 Aug 2017 14:42:49 +0200 Subject: [PATCH] Notify xymon-client handler when modification to default cli config. --- handlers/main.yml | 5 +++++ tasks/main.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 handlers/main.yml diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..2dd52b8 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,5 @@ +--- +# handlers file for ipr.ansible.xymon +- name: restart xymon-client service + service: name={{ xymon_cli_service_name }} state=restarted + when: xymon_cli_service_manage diff --git a/tasks/main.yml b/tasks/main.yml index 0db3e0b..f268d23 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,6 +26,7 @@ mode: 0644 backup: true when: xymon_cli_manage + notify: restart xymon-client service ## service - name: SERVICE manage '{{ xymon_cli_service_name }}'