ansible-ops-management/tasks/rsyncd.yml

33 lines
641 B
YAML
Raw Normal View History

2022-07-15 20:44:41 +00:00
---
# 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
...