[redhat] Install rsync-daemon for newer releases

The newer packages havee moved rsyncd into its own package called
rsync-daemon so we'll install that for anything newer than EL7.

Change-Id: Id1e8cc503d71cf6e7d0d84b5a74f6c3d7bce9393
This commit is contained in:
Mohammed Naser 2019-05-09 23:48:18 -04:00
parent 582a189117
commit ba7b358ccd
2 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@
- name: Install distro packages
package:
name: "{{ repo_server_distro_packages }}"
name: "{{ repo_server_distro_packages | reject('equalto', '') | list }}"
state: "{{ repo_server_package_state }}"
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
@ -76,4 +76,4 @@
src: "rsync.defaults"
dest: "/etc/default/rsync"
notify:
- reload rsyncd
- reload rsyncd

View File

@ -28,6 +28,7 @@ repo_server_distro_packages:
- nginx
- openssh-server
- rsync
- "{% if ansible_distribution_major_version|int > 7 %}rsync-daemon{% endif %}"
- sudo
repo_lsyncd_config_file: /etc/lsyncd.conf