From 06193847edffda082d8873d2487012eac4db5533 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 26 May 2024 14:32:34 +0200 Subject: bird: Add route table files --- roles/uvok_bird/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'roles/uvok_bird/tasks') diff --git a/roles/uvok_bird/tasks/main.yml b/roles/uvok_bird/tasks/main.yml index 942ad06..db9c64f 100644 --- a/roles/uvok_bird/tasks/main.yml +++ b/roles/uvok_bird/tasks/main.yml @@ -1,5 +1,24 @@ --- # tasks file for uvok_bird +- name: Ensure route/table definitions exists + ansible.builtin.file: + path: '{{ uvok_bird_route_file }}' + state: touch + mode: '0750' + owner: 'root' + group: 'root' +- name: Add route/table definitions + lineinfile: + path: '{{ uvok_bird_route_file }}' + state: present + search_string: "150" + line: "150\tas{{ uvok_bird_opts.clear_as }}" +- name: Add route/table definitions + lineinfile: + path: '{{ uvok_bird_route_file }}' + state: present + search_string: "100" + line: "100\tas{{ uvok_bird_opts.clear_as }}_out" - name: Install routing software package: name: -- cgit v1.2.3