finish rsyncd configuration
This commit is contained in:
parent
7abd579212
commit
8672876f2b
@ -46,4 +46,9 @@
|
||||
ansible.builtin.service:
|
||||
name: postfix
|
||||
state: restarted
|
||||
|
||||
- name: restart_rsyncd
|
||||
ansible.builtin.service:
|
||||
name: rsyncd
|
||||
state: restarted
|
||||
...
|
||||
|
@ -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
32
tasks/rsyncd.yml
Normal 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
|
||||
...
|
@ -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
|
Loading…
Reference in New Issue
Block a user