summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/tasks
diff options
context:
space:
mode:
authoruvok cheetah2024-04-29 20:41:11 +0200
committeruvok cheetah2024-04-29 20:41:11 +0200
commit36ad3dd2871b9de8577406ed37e1050bd2d4009a (patch)
tree1fc7f563dc5fc97a56d66ad9f62490cda30caff6 /roles/uvok_bird/tasks
parent90de89d1c66728e7d26bcecd5780a470da9fd565 (diff)
bird: Split clearnet files, use rsync
Diffstat (limited to 'roles/uvok_bird/tasks')
-rw-r--r--roles/uvok_bird/tasks/main.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/roles/uvok_bird/tasks/main.yml b/roles/uvok_bird/tasks/main.yml
index 2918f48..942ad06 100644
--- a/roles/uvok_bird/tasks/main.yml
+++ b/roles/uvok_bird/tasks/main.yml
@@ -55,14 +55,18 @@
- { src: 'clear_defines.conf.j2', dest: '{{ uvok_bird_opts.config_dir }}/clear_defines.conf' }
notify: configure bird
- name: Copy remaining clearnet files
- copy:
- src: files/{{ item }}
- dest: '{{ uvok_bird_opts.config_dir }}/{{ item }}'
- mode: '0640'
- owner: 'bird'
- group: 'bird'
- loop:
- - "clear_functions.conf"
+ ansible.posix.synchronize:
+ src: 'files/'
+ dest: '{{ uvok_bird_opts.config_dir }}'
+ recursive: true
+ archive: false
+ compress: false
+ rsync_opts:
+ - '--chown=bird:bird'
+ - '--chmod=0640'
+ - '--include=*/'
+ - '--include=clear*.conf'
+ - '--exclude=*'
when:
- uvok_bird_opts.clearnet
notify: configure bird