From dd26777ae479a800806a9432d1d6ac791a65b9ed Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Mon, 4 Dec 2017 11:11:43 +0200 Subject: [PATCH] Only do force listen on pacemaker nodes Only the nodes that run pacemaker (and the VIPs) should do whack --listen. This is not something the computes should do as it will restart the SAs. Change-Id: Id295d18fe8caec3446f57bf9a99ccd301f8d2728 --- handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 1cb2da1..2700c5c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -16,3 +16,5 @@ - name: Listen for IPSEC connections shell: ipsec whack --listen become: yes + when: + - inventory_hostname in groups['pacemaker']