finish rsyncd configuration

This commit is contained in:
Louis Abel 2022-07-15 13:44:41 -07:00
parent 7abd579212
commit 8672876f2b
Signed by: label
GPG Key ID: 6735C0E1BD65D048
4 changed files with 42 additions and 1 deletions

View File

@ -46,4 +46,9 @@
ansible.builtin.service:
name: postfix
state: restarted
- name: restart_rsyncd
ansible.builtin.service:
name: rsyncd
state: restarted
...

View File

@ -31,6 +31,10 @@
with_items: "{{ mounts }}"
tags: ["koji_efs_mount"]
- name: "Setup rsyncd"
include_tasks: tasks/rsyncd.yml
tags: ["rsyncd"]
post_tasks:
- name: Touching run file that ansible has ran here
ansible.builtin.file:

32
tasks/rsyncd.yml Normal file
View File

@ -0,0 +1,32 @@
---
# 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
...

View File

@ -1,7 +1,7 @@
uid = nobody
gid = mirror
use chroot = yes
max connections = 20
max connections = 30
pid file = /var/run/rsyncd.pid
exclude = lost+found/
transfer logging = yes