Razique Mahroua
2020-03-18 b85c91a8192593f6b62f93e11c971868964343a9
commit | author | age
bf4161 1 ---
JR 2 - name: Install required packages
b85c91 3   # FIXME:
RM 4   # Using the 'package' module fails when installing
5   # Unable to find yum & rpm python package on RHEL 7.5
6   #
7   # Error:
8   # The Python 32 bindings for rpm are needed for this module. If you require
9   # Python 3 support use the `dnf` Ansible module instead.. The Python 2 yum
10   # module is needed for this module. If you require Python 3 support use the
11   # `dnf` Ansible module instead.
12   # package
13   #
14   # To fix that error, we can install the bastion using a RHEL 8 image
15   command:
16     yum -y install {{ idm_rpms | join(" ") }}
bf4161 17
915b28 18 - name: Upgrade NSS package
b85c91 19   command:
RM 20     yum -y update nss
915b28 21
bf4161 22 # Cannot use a handler here
JR 23 - name: Ensure firewalld is running
24   service:
25     name: firewalld
26     state: started
27     enabled: yes
28
b85c91 29 # The 'firewalld' module is not compatible with Python 3 on RHEL 7
RM 30 # This has to do with missing python 3 bindings for firewalld
bf4161 31 - name: Open Firewall for IdM use
b85c91 32   shell: |
RM 33     firewall-cmd --permanent --zone=public --add-service={{ item }}
34     firewall-cmd --reload
bf4161 35   with_items:
JR 36   - ntp
37   - http
38   - https
39   - ldap
40   - ldaps
41   - kerberos
42   - kpasswd