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 Overflow
Discussions

Ansible installation on Amazon Linux 2023
Stick to AL2 until there is support. That’s what we’re doing for a bunch of our software More on reddit.com
🌐 r/aws
12
3
May 11, 2023
[Package Request] - ansible
What package is missing from Amazon Linux 2022? Please describe and include package name. ansible Package ansible is available in Fedora repository: https://src.fedoraproject.org/rpms/ansible Is th... More on github.com
🌐 github.com
35
December 5, 2021
[Bug] - ansible-playbook fails to launch on AL2023 20250123 x86_64
Describe the bug ansible-playbook with Ansible 8.3.0 fails to launch on containers run from the new amazonlinux:2023 20250123 x86_64 image. To Reproduce Steps to reproduce the behavior: docker pull public.ecr.aws/amazonlinux/amazonlinux:... More on github.com
🌐 github.com
10
January 25, 2025
Amazon Linux 2022/2023
Just my musings from having built most these major OS with packer pipelines in the past, I have no affiliation to AWS or special knowledge. AL2022 was the successor to AL2 and had been under dev/testing for years. They just renamed it from AL2022 --> AL2023 a week or so ago. https://github.com/amazonlinux/amazon-linux-2023/pull/275 . I think they originally planned to GA in 2022, hence the name, and that slid out. putting out an OS is hard work. AL (1) was based off RHEL6 (red hat) AL2 was based off RHEL7 AL2023 is fedora based, so moving to more of a rolling release AL in general is derived off another OS and those OS end of life so Amazon shifts to something new which makes sense for supporting packages and such. So the way these fit in is the same as any new OS, RHEL or Ubuntu new releases. Even Windows server releases; 2012-->16-->19 etc. Traditionally, major OS revolve around a major kernel update as well which often made for breaking changes for COTs apps a client may be using. Support for AL and AL2 got extended out past initial EOL for sec updates, just guessing covid and/or getting AL2023 out the door all played in to those decisions. There hasn't in the past been a supported direct upgrade path from major AL releases, so you can't run an upgrade check and do some commands to update and existing server from AL-->AL2. Ive seen folks do that with RHEL. I've personally never been a fan in the past of in-place OS upgrades for linux or windows; so a rebuild by hand or the opportunity to put everything into Ansible or other conf was a fun adventure. More on reddit.com
🌐 r/aws
14
40
March 5, 2023
🌐
CloudKatha
cloudkatha.com › home › how to install ansible on amazon linux 2023
How to Install Ansible on Amazon Linux 2023 - CloudKatha
August 9, 2023 - Installing EPEL on Amazon Linux 2023- Allowed or Not? Having said that, there is a third way that you can use. Using pip – python package manager. Ansible itself is written in Python.
🌐
GitHub
github.com › yankils › ansible › blob › master › install_ansible_on_Amazon_linux.md
ansible/install_ansible_on_Amazon_linux.md at master · yankils/ansible
Create a directory /etc/ansible and create an inventory file called "hosts" add control node and managed hosts IP addresses to it.
Author   yankils
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 57
[Package Request] - ansible · Issue #57 · amazonlinux/amazon-linux-2023
December 5, 2021 - Is this package available in Amazon Linux 2? Yes, it's available as “ansible2” topic in the Amazon Extras Library repository and as "ansible" in EPEL. ... I'm trying to install ansible in Amazon Linux 2022 but it's not available in the internal ...
Author   lucab85
🌐
GitHub
gist.github.com › ishallbethat › 7f47e3fe183063a2db4781d63038bca3
install ansible on amazon linux · GitHub
install ansible on amazon linux. GitHub Gist: instantly share code, notes, and snippets.
Find elsewhere
🌐
AWS
aws.amazon.com › blogs › infrastructure-and-automation › automate-ansible-playbook-deployment-amazon-ec2-github
Automate Ansible playbook deployment with Amazon EC2 and GitHub | Integration & Automation
May 19, 2020 - ... Install Ansible, NGINX, and Git. yum install ansible -y yum install nginx -y yum install git -y · Your webhook processing is now set up. Install Node.js. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash .
🌐
OneUptime
oneuptime.com › home › blog › how to use ansible to configure amazon linux 2023
How to Use Ansible to Configure Amazon Linux 2023
February 21, 2026 - Amazon Linux 2023 (AL2023) is Amazon's latest Linux distribution for EC2 and other AWS services. It is based on Fedora (not CentOS like AL2 was) and uses dnf as its package manager. AL2023 introduces deterministic updates through versioned repositories and has SELinux enabled in permissive mode by default. This guide covers Ansible automation specific to AL2023.
🌐
Medium
medium.com › @akhileshsingh395 › simplest-ways-of-installing-ansible-configuration-on-aws-dee002ae10
Easiest ways of Installing Ansible & Configuration on AWS | by Akhilesh Singh | Medium
February 11, 2020 - Ansible can be installed in many ways i.e. via using a package manager like yum, apt, deb, etc. and also via python package manager i.e.
🌐
GitHub
gist.github.com › diegopacheco › 3af46c13c5a709bf642d
How to Install Ansible on Amazon Linux / CentOS? · GitHub
sudo su yum update yum install -y git cd /usr/local/src yum -y install git python-jinja2 python-paramiko PyYAML make MySQL-python git clone git://github.com/ansible/ansible.git cd ansible git submodule update --init --recursive make install CTRL + D
🌐
AWS
aws.amazon.com › about-aws › whats-new › 2023 › 10 › amazon-linux-ansible-corretto-21-al-2023-2
Amazon Linux announces support for Ansible and Corretto 21 with AL2023.2
Starting with AL2023.2, Amazon Corretto 21 is available for installation. For Corretto 21, see what's new post for Corretto. To learn more about other features and capabilities in AL2023.2, see release notes. Amazon Linux 2023 is generally available in all AWS Regions, including the AWS GovCloud (US) and the China Regions.
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 893
[Bug] - ansible-playbook fails to launch on AL2023 20250123 x86_64 · Issue #893 · amazonlinux/amazon-linux-2023
January 25, 2025 - Expected behavior The usual ansible-playbook usage is expected to be shown · Desktop (please complete the following information): OS: AmazonLinux 2023 container on x86_64 MacOS Sonoma 14.7.2 with Docker Desktop 4.37.2
Author   dmacbride-ep
🌐
CloudKatha
cloudkatha.com › home › how to install ansible on amazon linux 2 instance
How to Install Ansible on Amazon Linux 2 Instance - CloudKatha
August 4, 2023 - In this post, I will show you how to install Ansible on Amazon Linux 2 EC2 instance in a simple and step-by-step manner.
🌐
AWS
docs.aws.amazon.com › amazon linux › release notes › amazon linux 2023 release notes › amazon linux 2023 2023.6 release notes › amazon linux 2023 version 2023.6.20250123 release notes
Amazon Linux 2023 version 2023.6.20250123 release notes - Amazon Linux 2023
January 23, 2025 - Work-Around - Customers affected ... sudo dnf install ansible-core-2.15.3-1.amzn2023.0.5 · For information on the CVEs addressed in this release, see the Amazon Linux Security Center ... For visibility into the status of CVEs that haven't been addressed yet, see the Amazon Linux Security Center ...
🌐
Intuitive
intuitive.cloud › blog › configure-ansible-for-windows-and-linux-instances-on-aws
Configure Ansible for Windows and Linux Instances on AWS
Discover how to set up Ansible on a Linux control node, configure security groups for WinRM, and manage Windows hosts through automation.
🌐
Medium
medium.com › @maureenchebett › configure-jenkins-using-ansible-on-amazon-linux-2023-44975cd1d57c
Configure Jenkins using Ansible on Amazon Linux 2023 | by Maureen Chebet | Medium
February 24, 2024 - Before we begin, make sure you have basic knowledge of Ansible and Jenkins and the following prerequisites: ... An Amazon Linux instance up and running. (Amazon Linux 2023) SSH access to your Amazon Linux instance. Note: Make sure to open the necessary ports (e.g., port 8080 for Jenkins) in the security group settings. ... We will install Jenkins using Ansible playbook.
🌐
GitHub
github.com › topics › amazon-linux-2023
amazon-linux-2023 · GitHub Topics · GitHub
Bash script for installing Ruby-on-Rails via RVM. Intended to use on an Amazon Linux 2023 EC2 instance. ... Terraform module which creates a docker instance resource on AWS. docker aws docker-compose aws-ec2 amazon-linux-2023 ... Terraform module which creates a docker instance resource on AWS. ... Amazon Linux 2023 Docker image for Ansible playbook and role testing - Repository mirror - development takes place on code.europa.eu