From 3f11b7c78daceecd6379da255afbe0de645e0f7d Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Tue, 18 Nov 2025 21:38:39 -0500 Subject: [PATCH] Added handler for RSyncD configuration --- roles/bootstrap/handlers/rsyncd.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 roles/bootstrap/handlers/rsyncd.yml diff --git a/roles/bootstrap/handlers/rsyncd.yml b/roles/bootstrap/handlers/rsyncd.yml new file mode 100644 index 0000000..dcfac93 --- /dev/null +++ b/roles/bootstrap/handlers/rsyncd.yml @@ -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