aboutsummaryrefslogtreecommitdiff
path: root/tnet/bird-gen.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/bird-gen.yml')
-rw-r--r--tnet/bird-gen.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tnet/bird-gen.yml b/tnet/bird-gen.yml
new file mode 100644
index 0000000..74a83b1
--- /dev/null
+++ b/tnet/bird-gen.yml
@@ -0,0 +1,16 @@
+- name: Generate Bird configuration
+ hosts: tnet_bird
+ connection: local
+ gather_facts: False
+ tasks:
+ - name: rmdir files/$hostname
+ file:
+ path: files/{{ inventory_hostname }}
+ state: absent
+ changed_when: False
+ - template:
+ src: "{{ item }}.j2"
+ dest: "templates/{{ inventory_hostname }}/{{ item }}"
+ loop:
+ - bird-tnet-pre.conf
+ - bird-tnet.conf