role service-fastd-backbone + service-bird: add tag sync-peers to only refresh backbone peers

This commit is contained in:
Julian Labus 2018-09-20 11:33:34 +02:00
parent da9ab1430c
commit 15d2c171c5
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
3 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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') }}"

View file

@ -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