diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-06-13 22:39:18 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-06-13 22:39:18 +0200 |
commit | 972364516ba400878b9e06fe239c1f07d751d4fa (patch) | |
tree | 192cbde5b2502db476b237baa9f973b406f1951e /tnet/bird-deploy.yml | |
parent | 76e3c7f247f16056129d945e9002730329e57ad6 (diff) | |
download | infra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.gz infra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.bz2 infra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.xz infra-972364516ba400878b9e06fe239c1f07d751d4fa.zip |
Diffstat (limited to 'tnet/bird-deploy.yml')
-rw-r--r-- | tnet/bird-deploy.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tnet/bird-deploy.yml b/tnet/bird-deploy.yml new file mode 100644 index 0000000..ed7cecf --- /dev/null +++ b/tnet/bird-deploy.yml @@ -0,0 +1,26 @@ +- hosts: tnet_bird + tasks: + - become: yes + copy: + dest: "/etc/bird/{{ item }}" + src: "{{ inventory_hostname }}/{{ item }}" + owner: bird + group: bird + mode: 0640 + register: bird_conf + loop: + - bird-tnet-pre.conf + - bird-tnet.conf + + - systemd: + state: reloaded + service: bird + when: bird_conf.changed + become: yes + handlers: + - name: systemctl reload bird + become: yes + systemd: + name: bird + state: reloaded + |