ansible-ops-management/tasks/rsyncd.yml

34 lines
680 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:
2023-08-28 01:17:49 +00:00
name: "{{ item }}"
2022-07-15 20:44:41 +00:00
persistent: true
state: true
notify: restart_rsyncd
2023-08-28 01:17:49 +00:00
with_items: "{{ repopool_rsync_booleans }}"
2022-07-15 20:44:41 +00:00
- name: Ensure postfix is running and enabled
ansible.builtin.service:
name: rsyncd
state: restarted
enabled: true
...