2016-10-28 16:37:37 +02:00
|
|
|
---
|
|
|
|
- name: install rsnycd configuration file
|
2018-07-24 17:09:02 +02:00
|
|
|
template:
|
|
|
|
src: rsyncd.conf.j2
|
2016-11-26 14:17:14 +01:00
|
|
|
dest: /etc/rsyncd.conf
|
|
|
|
mode: 0640
|
2018-07-24 17:09:02 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2016-10-28 16:37:37 +02:00
|
|
|
|
|
|
|
- name: install rsnyc systemd unit
|
2018-07-24 17:09:02 +02:00
|
|
|
template:
|
|
|
|
src: rsync.service.j2
|
2016-11-26 14:17:14 +01:00
|
|
|
dest: /etc/systemd/system/
|
|
|
|
mode: 0644
|
2018-07-24 17:09:02 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: reload systemd
|
2016-10-28 16:37:37 +02:00
|
|
|
|
2018-07-24 17:09:02 +02:00
|
|
|
- name: ensure rsync is started and activated
|
2016-10-28 16:37:37 +02:00
|
|
|
systemd:
|
|
|
|
name: rsync
|
|
|
|
state: started
|
|
|
|
enabled: True
|