From a1ed04cab858c880793961d6cd1dbd4534afb964 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 4 Jul 2021 14:20:52 +0200 Subject: [PATCH] RELOAD keepalived, don't restart it Signed-off-by: Yohann D'ANELLO --- roles/router/handlers/main.yml | 4 ++-- roles/router/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/router/handlers/main.yml b/roles/router/handlers/main.yml index 0583512..ebcd860 100644 --- a/roles/router/handlers/main.yml +++ b/roles/router/handlers/main.yml @@ -1,7 +1,7 @@ --- -- name: restart keepalived +- name: Reload keepalived systemd: - state: restarted + state: reloaded name: keepalived enabled: true diff --git a/roles/router/tasks/main.yml b/roles/router/tasks/main.yml index 87b0086..e9319a7 100644 --- a/roles/router/tasks/main.yml +++ b/roles/router/tasks/main.yml @@ -80,7 +80,7 @@ src: keepalived.conf dest: /etc/keepalived/keepalived.conf mode: 0644 - notify: restart keepalived + notify: Reload keepalived when: "'routeur-aurore' not in ansible_hostname" - name: configure keepalived for routeur-aurore*