summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/tasks
diff options
context:
space:
mode:
authoruvok cheetah2024-04-21 15:50:35 +0200
committeruvok cheetah2024-04-21 15:50:35 +0200
commit2b9a71e8ecb41cc8e9b73735837f07c9b1351ff7 (patch)
tree84ff56a440e31ce33bb8ea214ab79391660a4b44 /roles/uvok_bird/tasks
parent293ddf3a4bf78d72fea4b8196e3bbc2d81b3f12e (diff)
Changed to bird tole
- rename prefixes to clear_prefixes - add router id - add config files - add handler "change"
Diffstat (limited to 'roles/uvok_bird/tasks')
-rw-r--r--roles/uvok_bird/tasks/main.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/roles/uvok_bird/tasks/main.yml b/roles/uvok_bird/tasks/main.yml
index c3ef063..4bdcf35 100644
--- a/roles/uvok_bird/tasks/main.yml
+++ b/roles/uvok_bird/tasks/main.yml
@@ -7,7 +7,17 @@
mode: '0750'
owner: 'bird'
group: 'bird'
-- name: Install template
+- name: Install common templates
+ template:
+ src: '{{ item.src }}'
+ dest: '{{ item.dest }}'
+ mode: '0640'
+ owner: 'bird'
+ group: 'bird'
+ loop:
+ - { src: 'bird.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/bird.conf' }
+ - { src: 'defines.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/defines.conf' }
+- name: Install clearnet templates
template:
src: clearnet.conf.j2
dest: '{{ uvok_bird_opts.config_dir }}/clearnet.conf'
@@ -17,3 +27,14 @@
when:
- uvok_bird_opts.clearnet
notify: configure bird
+- name: Copy remaining files
+ copy:
+ src: files/{{ item }}
+ dest: '{{ uvok_bird_opts.config_dir }}/{{ item }}'
+ mode: '0640'
+ owner: 'bird'
+ group: 'bird'
+ loop:
+ - "common.conf"
+ - "logging.conf"
+ notify: configure bird