It appears that python library files do not have correct permissions by default. Running this fixed it for me.
[root@ip-10-0-0-11 ansible]# pip install ansible
Answer from Keilo on Stack OverflowIt appears that python library files do not have correct permissions by default. Running this fixed it for me.
[root@ip-10-0-0-11 ansible]# pip install ansible
Using pip (alone, not in conjunction with yum) is probably the best option right now on Amazon Linux. I'd suggest getting rid of the yum-installed copy if it's still there.
The RPM specs in epel and epel-testing (as of 1.9.2) currently handle only RHEL, Fedora, and SuSE, and the defaults are installing everything under Python 2.6, where the latest Amazon Linux has default Python 2.7. A bit of work will be required to get the RPM install working under Amazon Linux...
I am unable install Ansible for AL 2023 beacuse epel support is not provided in AL 2023, what to do?
Please, help someone.
[Package Request] - ansible
Ansible support for amazon-linux-extras
Amazon Linux 2022/2023
Amazon Linux 2023 Officially Released
Videos
Is there any support to enable pcakages under amazon-linux-extras in ansible ? Like if I have to enable a packages i run a shell command amazon-linux-extras enable nginx1 ? Does Ansible has any module that module support above command ?