You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
453 B
19 lines
453 B
---
|
|
- name: install rsync
|
|
become: yes
|
|
package:
|
|
name: "{{ package }}"
|
|
state: present
|
|
loop: "{{ data_sync_packages[ansible_distribution|lower] }}"
|
|
loop_control:
|
|
loop_var: package
|
|
- name: synchronize data dir
|
|
become: yes
|
|
synchronize:
|
|
src: "{{ playbook_dir }}/data/"
|
|
dest: "/"
|
|
owner: no
|
|
group: no
|
|
perms: yes
|
|
rsync_path: '{{ ansible_become_method }} -u root rsync'
|
|
copy_links: '{{ data_sync_copy_links }}'
|
|
|