From ddb126248f55c465225a79be49ba65629036ae9f Mon Sep 17 00:00:00 2001 From: Simeon 'n0emis' Keske Date: Wed, 17 Feb 2021 13:45:43 +0100 Subject: [PATCH] check if bird reload was successful --- handlers/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index c712ebd..bbdd7f1 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,8 +1,8 @@ --- - name: reload bird - service: - name: "bird" - state: reloaded + command: "birdc configure" + register: _birdc_reload + failed_when: "'Reconfigur' not in _birdc_reload.stdout" - name: restart networking service: