Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
rsync_port: 873
rsync_src_ip: []

View File

@@ -0,0 +1,38 @@
---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: rsync
- name: Install packages
package: name={{ rsync_packages }}
tags: rsync
- name: Handle rsyncd port
iptables_raw:
name: rsync_port
state: "{{ (rsync_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ rsync_port }} -s {{ rsync_src_ip | join(',') }} -j ACCEPT"
when: iptables_manage | default(True)
tags: [firewall,rsync]
- name: Create rsyncd.d directory
file: path=/etc/rsyncd.conf.d state=directory
tags: rsync
- name: Deploy rsyncd conf
template: src=rsyncd.conf.j2 dest=/etc/rsyncd.conf
tags: rsync
- name: Allow rsync full access in SELinux
seboolean: name=rsync_full_access state=True persistent=True
when: ansible_selinux.status == 'enabled'
tags: rsync
- name: Start and enable rsync daemon
systemd: name=rsyncd.socket state=started enabled=True
tags: rsync

View File

@@ -0,0 +1,4 @@
transfer logging = yes
dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
&include /etc/rsyncd.conf.d

View File

@@ -0,0 +1,4 @@
---
rsync_packages:
- rsync

View File

@@ -0,0 +1,4 @@
---
rsync_packages:
- rsync

View File

@@ -0,0 +1,5 @@
---
rsync_packages:
- rsync
- libsemanage-python

View File

@@ -0,0 +1,6 @@
---
rsync_packages:
- rsync
- rsync-daemon
- python3-libsemanage