From 15d2c171c54579ad199be989072fee15907310e4 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Thu, 20 Sep 2018 11:33:34 +0200 Subject: [PATCH] role service-fastd-backbone + service-bird: add tag `sync-peers` to only refresh backbone peers --- roles/service-bird/tasks/main.yml | 2 ++ roles/service-fastd-backbone/handlers/main.yml | 6 ++++++ roles/service-fastd-backbone/tasks/main.yml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/roles/service-bird/tasks/main.yml b/roles/service-bird/tasks/main.yml index 44bcaba..70b0df5 100644 --- a/roles/service-bird/tasks/main.yml +++ b/roles/service-bird/tasks/main.yml @@ -38,6 +38,7 @@ mode: 0640 owner: bird group: bird + tags: sync-peers notify: reload systemd unit bird - name: write mwu_ipv6_peers.conf @@ -47,6 +48,7 @@ mode: 0640 owner: bird group: bird + tags: sync-peers notify: reload systemd unit bird6 - name: enable + start systemd units bird + bird6 diff --git a/roles/service-fastd-backbone/handlers/main.yml b/roles/service-fastd-backbone/handlers/main.yml index 048f5b9..1b57136 100644 --- a/roles/service-fastd-backbone/handlers/main.yml +++ b/roles/service-fastd-backbone/handlers/main.yml @@ -4,3 +4,9 @@ name: "fastd@{{ item.0.id }}igvpn-{{ item.1.mtu }}" state: restarted loop: "{{ meshes | subelements('fastd.backbone.instances') }}" + +- name: reload fastd backbone instances + systemd: + name: "fastd@{{ item.0.id }}igvpn-{{ item.1.mtu }}" + state: reloaded + loop: "{{ meshes | subelements('fastd.backbone.instances') }}" diff --git a/roles/service-fastd-backbone/tasks/main.yml b/roles/service-fastd-backbone/tasks/main.yml index bb8f17d..e3841ed 100644 --- a/roles/service-fastd-backbone/tasks/main.yml +++ b/roles/service-fastd-backbone/tasks/main.yml @@ -21,6 +21,8 @@ dest: "/etc/fastd/{{ item.0.id }}igvpn-{{ item.1.mtu }}/peers" version: "{{ item.1.peers.version }}" update: yes + tags: sync-peers + notify: reload fastd backbone instances loop: "{{ meshes | subelements('fastd.backbone.instances') }}" become: false