diff options
Diffstat (limited to 'roles/uvok_bird/tasks')
-rw-r--r-- | roles/uvok_bird/tasks/main.yml | 20 |
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 |