[IPA-Server]Don't install pynag on RHEL9

pynag is not available on rhel9 yet.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-09-20 15:56:10 +02:00
parent dd6b5b1546
commit 8a6b5a7c65

View file

@ -26,8 +26,21 @@
tags:
- ipa/server
- packages
when: ansible_distribution_major_version|int <= 8 and ansible_distribution == 'RedHat'
# TODO: need pynag for monitoring, not yet in rhel8.
- name: install needed packages
package: name={{ item }} state=present
with_items:
- haveged
- ipa-server
- ipa-server-dns
- ipa-fas
tags:
- ipa/server
- packages
when: ansible_distribution_major_version|int >= 9 and ansible_distribution == 'RedHat'
# TODO: need pynag for monitoring, not yet in rhel9.
- name: enable haveged
service: name=haveged state=started enabled=yes