summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/uvok_bird/handlers/main.yml')
-rw-r--r--roles/uvok_bird/handlers/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/uvok_bird/handlers/main.yml b/roles/uvok_bird/handlers/main.yml
index aab7d9f..33814c5 100644
--- a/roles/uvok_bird/handlers/main.yml
+++ b/roles/uvok_bird/handlers/main.yml
@@ -4,6 +4,10 @@
- name: Check config
command: birdc configure check
listen: configure bird
+ changed_when: false
+ register: bird_check_result
- name: Apply bird config
command: birdc configure soft
listen: configure bird
+ changed_when: true
+ when: bird_check_result.rc == 0