redhat-cop / ocp4-helpernode

This playbook helps set up an "all-in-one" node, that has all the infrastructure/services in order to install OpenShift 4.
342 stars 303 forks source link

PR support for RHEL 9 (Plow) + ansible-core 2.13.3 #299

Closed salanisor closed 1 year ago

salanisor commented 1 year ago

Read issue #296 and thought I'd share the recent work I had to do to get this working on RHEL 9.

Please note that I installed ansible provided via EPEL which in turn pulled in ansible-core and libraries from their respective RHEL repositories and that is what I used to execute these changes.

Removing:
 ansible                                                              noarch                                                 5.4.0-3.el9                                                    @epel                                                                             301 M
Removing unused dependencies:
 ansible-core                                                         x86_64                                                 2.13.3-1.el9                                                   @rhel-9-for-x86_64-appstream-rpms                                                  11 M
 python3-cffi                                                         x86_64                                                 1.14.5-5.el9                                                   @rhel-9-for-x86_64-appstream-rpms                                                 1.0 M
 python3-cryptography                                                 x86_64                                                 36.0.1-2.el9                                                   @rhel-9-for-x86_64-appstream-rpms                                                 4.5 M
 python3-packaging                                                    noarch                                                 20.9-5.el9                                                     @rhel-9-for-x86_64-appstream-rpms                                                 248 k
 python3-pycparser                                                    noarch                                                 2.20-6.el9                                                     @rhel-9-for-x86_64-appstream-rpms                                                 745 k
 python3-pyparsing                                                    noarch                                                 2.4.7-9.el9                                                    @rhel-9-for-x86_64-baseos-rpms                                                    635 k
 python3-resolvelib                                                   noarch                                                 0.5.4-5.el9                                                    @rhel-9-for-x86_64-appstream-rpms                                                  66 k
 sshpass                                                              x86_64                                                 1.09-4.el9                                                     @rhel-9-for-x86_64-appstream-rpms                                                  47 k

Note: I faced an issue attempting to loop through the critical services fact, so I ended up moving it into a list and it just worked without issue.