diff options
Diffstat (limited to 'tnet/bird-gen.yml')
-rw-r--r-- | tnet/bird-gen.yml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tnet/bird-gen.yml b/tnet/bird-gen.yml index 17e8128..9fa71b1 100644 --- a/tnet/bird-gen.yml +++ b/tnet/bird-gen.yml @@ -1,11 +1,25 @@ +- name: Remove old configuration + hosts: localhost + connection: local + gather_facts: False + tasks: + - file: + path: files + state: absent + changed_when: False + - name: Generate Bird configuration - hosts: tnet + hosts: tnet_bird connection: local gather_facts: False tasks: - file: path: files/{{ inventory_hostname }} state: directory + changed_when: False - template: - src: bird-tnet.conf.j2 - dest: files/{{ inventory_hostname }}/bird-tnet.conf + src: "{{ item }}.j2" + dest: "files/{{ inventory_hostname }}/{{ item }}" + loop: + - bird-tnet-pre.conf + - bird-tnet.conf |