blob: 4bdcf357343daf80ebbc643bc7eb0e81f9ccfee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
---
# tasks file for uvok_bird
- name: Ensure bird directory exists
ansible.builtin.file:
path: '{{ uvok_bird_opts.config_dir }}'
state: directory
mode: '0750'
owner: 'bird'
group: 'bird'
- 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'
mode: '0640'
owner: 'bird'
group: 'bird'
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
|