2021-09-15 00:46:18 -04:00
|
|
|
- name: rsync
|
|
|
|
apt:
|
|
|
|
name: rsync
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
|
2021-09-11 23:56:31 -04:00
|
|
|
- name: enable and start rsync daemon
|
|
|
|
systemd:
|
|
|
|
name: rsync
|
|
|
|
enabled: true
|
|
|
|
state: started
|
|
|
|
|
2021-09-15 00:46:18 -04:00
|
|
|
- name: copy rsync configs
|
2021-09-11 23:56:31 -04:00
|
|
|
template:
|
2021-09-15 00:46:18 -04:00
|
|
|
src: templates/{{ item.src }}
|
|
|
|
dest: /etc/{{ item.dest }}
|
2021-09-11 23:56:31 -04:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2021-09-17 16:42:15 -04:00
|
|
|
loop:
|
2021-09-15 00:46:18 -04:00
|
|
|
- { src: "rsyncd.conf.j2", dest: "rsyncd.conf" }
|
|
|
|
- { src: "rsyncd-filter.conf.j2", dest: "rsyncd-filter.conf" }
|
2021-09-11 23:56:31 -04:00
|
|
|
notify: restart rsync
|