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