33 lines
680 B
YAML
33 lines
680 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: "{{ item }}"
|
|
persistent: true
|
|
state: true
|
|
notify: restart_rsyncd
|
|
with_items: "{{ repopool_rsync_booleans }}"
|
|
|
|
- name: Ensure postfix is running and enabled
|
|
ansible.builtin.service:
|
|
name: rsyncd
|
|
state: restarted
|
|
enabled: true
|
|
...
|