Thanks Sebastian, one of the best replies I have received from community . 
Keep up the good work. 

On Wednesday, March 27, 2019 at 4:10:09 PM UTC+8, Sebastian Meyer wrote:
>
> Hi Prakash, 
>
> you have three options here: 
>
> 1) disable selinux in /etc/selinux/config 
>
> Then you don't need libselinux-python at all 
>
> 2) use ansible <= 2.3 for management of the RHEL 5 systems 
>
> Then you still can use python 2.4 provided by RHEL 5 
>
> 3) build libselinux-python for python2.6 yourself 
>
> THIS PROBABLY VOIDS YOUR SUPPORT FROM RED HAT, so I wouldn't recommend 
> this. 
>
> This one requires all your RHEL 5 servers to have the same version of 
> SELinux and you'll probably want to build this in a chroot or on a 
> dedicated build host. 
>
> The steps would be 
>
> * enable the source repo 
> * download and install the source rpm for libselinux 
> * install the build dependencies (and python26-devel) 
> * change the spec file so the resulting python package is not called 
> libselinux-python but libselinux-python26 
> * link /usr/bin/python to /usr/bin/python26 
> * build the new rpms 
>
> You should be able to only install the libselinux-python26 package (as 
> you didn't change the version of anything else) alongside the normal 
> libselinux-python from redhat. 
>
> Then ansible with ansible_python_interpreter=/usr/bin/python26 would 
> pick up the self-built libselinux-python26 and everything else should 
> still be using the system libselinux-python. 
>
> Sebastian 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: [email protected] <javascript:> 
>
> B1 Systems GmbH 
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b7e22e05-1293-484c-a8f5-661806544104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to