finish rsyncd configuration
This commit is contained in:
parent
7abd579212
commit
8672876f2b
@ -46,4 +46,9 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart_rsyncd
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: rsyncd
|
||||||
|
state: restarted
|
||||||
...
|
...
|
||||||
|
@ -31,6 +31,10 @@
|
|||||||
with_items: "{{ mounts }}"
|
with_items: "{{ mounts }}"
|
||||||
tags: ["koji_efs_mount"]
|
tags: ["koji_efs_mount"]
|
||||||
|
|
||||||
|
- name: "Setup rsyncd"
|
||||||
|
include_tasks: tasks/rsyncd.yml
|
||||||
|
tags: ["rsyncd"]
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Touching run file that ansible has ran here
|
- name: Touching run file that ansible has ran here
|
||||||
ansible.builtin.file:
|
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
|
uid = nobody
|
||||||
gid = mirror
|
gid = mirror
|
||||||
use chroot = yes
|
use chroot = yes
|
||||||
max connections = 20
|
max connections = 30
|
||||||
pid file = /var/run/rsyncd.pid
|
pid file = /var/run/rsyncd.pid
|
||||||
exclude = lost+found/
|
exclude = lost+found/
|
||||||
transfer logging = yes
|
transfer logging = yes
|
Loading…
Reference in New Issue
Block a user