From 972364516ba400878b9e06fe239c1f07d751d4fa Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 13 Jun 2024 22:39:18 +0200 Subject: tnet --- tnet/bird-gen.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'tnet/bird-gen.yml') 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 -- cgit v1.2.3