summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/handlers
diff options
context:
space:
mode:
authoruvok cheetah2024-04-21 15:50:35 +0200
committeruvok cheetah2024-04-21 15:50:35 +0200
commit2b9a71e8ecb41cc8e9b73735837f07c9b1351ff7 (patch)
tree84ff56a440e31ce33bb8ea214ab79391660a4b44 /roles/uvok_bird/handlers
parent293ddf3a4bf78d72fea4b8196e3bbc2d81b3f12e (diff)
Changed to bird tole
- rename prefixes to clear_prefixes - add router id - add config files - add handler "change"
Diffstat (limited to 'roles/uvok_bird/handlers')
-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