Added handler for RSyncD configuration
This commit is contained in:
24
roles/bootstrap/handlers/rsyncd.yml
Normal file
24
roles/bootstrap/handlers/rsyncd.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# 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
|
||||||
Reference in New Issue
Block a user