rsyncd: use systemd service on rhel9 as well as fedora
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
2003d70bc9
commit
261879c688
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@
|
|||
- name: rsyncd.conf file
|
||||
template: src=rsyncd.conf.download.j2 dest=/etc/rsyncd.conf mode=0644
|
||||
notify:
|
||||
- restart xinetd
|
||||
- restart daemon
|
||||
when: "'download' in group_names"
|
||||
tags:
|
||||
- config
|
||||
|
@ -80,7 +80,7 @@
|
|||
|
||||
- name: systemd rsync file
|
||||
copy: src=rsyncd.service dest=/usr/lib/systemd/system/rsyncd.service mode=0644
|
||||
when: ansible_distribution_major_version|int >= 34 and ansible_distribution == 'Fedora'
|
||||
when: (ansible_distribution_major_version|int >= 34 and ansible_distribution == 'Fedora') or (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int > 8)
|
||||
notify:
|
||||
- restart daemon
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue