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*