summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/tasks
diff options
context:
space:
mode:
authoruvok cheetah2024-03-19 19:37:36 +0100
committeruvok cheetah2024-03-19 19:37:36 +0100
commit94fd6db6186ea78bb98bb7bbd5092ef7da92ac36 (patch)
tree8981c9d1e53cf8bcb62e8cb01f7c7e837982f2db /roles/uvok_bird/tasks
parente90d8566b369beb66df73eb2638905a86d07cf5f (diff)
Add my bird role
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