33 lines
641 B
YAML
33 lines
641 B
YAML
|
---
|
||
|
# Configure rsyncd
|
||
|
- name: Install rsync packages
|
||
|
ansible.builtin.dnf:
|
||
|
name:
|
||
|
- rsync-daemon
|
||
|
- python3-libsemanage
|
||
|
state: present
|
||
|
tags:
|
||
|
- packages
|
||
|
- rsync
|
||
|
|
||
|
- name: Configure rsyncd configuration
|
||
|
ansible.builtin.template:
|
||
|
src: "etc/rsyncd.conf.j2"
|
||
|
dest: "/etc/rsyncd.conf"
|
||
|
mode: '0644'
|
||
|
notify: restart_rsyncd
|
||
|
|
||
|
- name: Configure seboolean
|
||
|
ansible.posix.seboolean:
|
||
|
name: rsync_export_all_ro
|
||
|
persistent: true
|
||
|
state: true
|
||
|
notify: restart_rsyncd
|
||
|
|
||
|
- name: Ensure postfix is running and enabled
|
||
|
ansible.builtin.service:
|
||
|
name: rsyncd
|
||
|
state: restarted
|
||
|
enabled: true
|
||
|
...
|