aboutsummaryrefslogtreecommitdiff
path: root/tnet/bird-deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/bird-deploy.yml')
-rw-r--r--tnet/bird-deploy.yml26
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
+