aboutsummaryrefslogtreecommitdiff
path: root/tnet/bird-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/bird-config.yml')
-rw-r--r--tnet/bird-config.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tnet/bird-config.yml b/tnet/bird-config.yml
new file mode 100644
index 0000000..fcffa4d
--- /dev/null
+++ b/tnet/bird-config.yml
@@ -0,0 +1,20 @@
+- hosts: tnet
+ tasks:
+ - become: yes
+ copy:
+ dest: /etc/bird/bird-tnet.conf
+ src: "{{ inventory_hostname }}/bird-tnet.conf"
+ register: bird_conf
+
+ - systemd:
+ state: reloaded
+ service: bird
+ when: bird_conf.changed
+ become: yes
+ handlers:
+ - name: systemctl reload bird
+ become: yes
+ systemd:
+ name: bird
+ state: reloaded
+