summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/uvok_bird/tasks')
-rw-r--r--roles/uvok_bird/tasks/main.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/uvok_bird/tasks/main.yml b/roles/uvok_bird/tasks/main.yml
new file mode 100644
index 0000000..c3ef063
--- /dev/null
+++ b/roles/uvok_bird/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+# 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 template
+ 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