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
🌐
CloudKatha
cloudkatha.com › home › how to install ansible on amazon linux 2023
How to Install Ansible on Amazon Linux 2023 - CloudKatha
August 9, 2023 - So in this post, we will use pip to install Ansible on our Amazon Linux System. Note: Pip is a package manager for Python. You can use it to install/manage packages that are not part of the Python standard library.
Discussions

How to install ansible on amazon aws? - Stack Overflow
Having trouble running Ansible on the latest version of amazon linux. [root@ip-10-0-0-11 ec2-user]# yum install ansible --enablerepo=epel [root@ip-10-0-0-11 ec2-user]# ansible-playbook Traceback (... More on stackoverflow.com
🌐 stackoverflow.com
[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
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
Amazon Linux 2023 Officially Released
By default, any instances launched with the AL2023 AMI will require the use of IMDSv2-only The amount of users who are about to be shocked that curl http://169.254.169.254/latest/meta-data/ no longer works will be numerous. More on reddit.com
🌐 r/aws
90
246
March 15, 2023
🌐
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
October 10, 2023 - 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.
🌐
AnsiblePilot
ansiblepilot.com › home › articles › how to install ansible in amazon linux 2 (aws ec2) - ansible install
How to install Ansible in Amazon Linux 2 (AWS | AnsiblePilot
November 17, 2024 - Today we're talking about How to install Ansible in Amazon Linux 2. The good news is that Ansible is included in the Extras Library included in Amazon Linux 2 repository using the "amazon-linux-extras" command.
🌐
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 - Configure Amazon Linux 2023 EC2 instances with Ansible covering dnf, SELinux, AWS integration, and cloud-optimized system tuning. ... 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.
🌐
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 - learnt How to Install Ansible on Amazon Linux 2 Instance. We covered 3 different ways to install Ansible on Amazon Linux 2 Instance. Use the
Find elsewhere
🌐
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 - (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 › 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
🌐
Medium
medium.com › @dassandeep0001 › install-ansible-on-ec2-instance-bbfa7e4481ec
Install Ansible on ec2 instance - Sandeep Das - Medium
January 11, 2023 - To install Ansible on an Amazon Elastic Compute Cloud (EC2) instance, you can use the command-line interface (CLI) provided by the Amazon…
🌐
DEV Community
dev.to › aws-builders › ansible-for-amazon-linux-2-2icf
Important Settings of Amazon Linux 2 Which Can Be Done Using Ansible - DEV Community
September 30, 2023 - Ansible collection for AWS by running ansible-galaxy collection install amazon.aws and ansible-galaxy collection install community.aws.
🌐
DEV Community
dev.to › bianca › configure-jenkins-using-ansible-on-amazon-linux-2023-1ald
Configure Jenkins using Ansible on Amazon Linux 2023 - DEV Community
February 24, 2024 - Note: Make sure to open the necessary ports (e.g., port 8080 for Jenkins) in the security group settings. ... Connect into the ec2 instance either using ssh or session manager the run: sudo yum update && yum install ansible
🌐
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   amazonlinux
🌐
Edureka Community
edureka.co › home › community › categories › cloud computing › aws › how to install ansible on amazon aws linux
How to install ansible on amazon aws linux | Edureka Community
October 24, 2024 - 281997/how-to-install-ansible-on-amazon-aws-linux · Home · Community · Categories · Cloud Computing · AWS · How to install ansible on amazon aws linux · How do you set up VPC (Virtual Private Cloud) in AWS? Jun 5, 2025 · How do you deploy a containerized application using AWS ECS or EKS?
🌐
Medium
ianodad.medium.com › how-to-install-ansible-2-on-aws-linux-2-ec2-ba0ffde42792
How to install Ansible 2 on AWS Linux 2 (EC2) - Ian Adera - Medium
January 10, 2024 - Ansible works by running commands via SSH, so there’s no need to install any server software. Step 1 — Install the latest version of a packages ... Step 2 — Use the amazon-linux-extras command to install Ansible.
🌐
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.
🌐
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 ...