25 lines
676 B
YAML
25 lines
676 B
YAML
# SPDX-License-Identifier: MIT-0
|
|
---
|
|
# handlers file for bootstrap
|
|
- name: Configure RSyncD
|
|
listen: rsync
|
|
become: true
|
|
block:
|
|
# @TODO further construct the following commented task
|
|
# - name: Add directories to be published by RSyncD
|
|
- name: Create RSyncD configuration
|
|
ansible.builtin.template:
|
|
backup: true
|
|
dest: /etc/rsyncd.conf
|
|
force: true
|
|
group: root
|
|
owner: root
|
|
src: rsyncd.conf.j2
|
|
# validate: string
|
|
- name: Start and enable RSyncD SystemD system unit service
|
|
ansible.builtin.systemd_service:
|
|
enabled: true
|
|
name: rsync
|
|
scope: system
|
|
state: started
|