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

[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
Ansible support for amazon-linux-extras
Amazon Linux 2023 itself no longer supports amazon-linux-extras. However if you still use the older Amazon Linux 2 then it is supported. You don't have to use their specific commands though. amazon-linux-extras uses YUM repositories. The most idempotent way to enable it using Ansible is using the ansible.builtin.yum_repository module to add their repositories, then ansible.builtin.package module to install packages. Note that you would have to manually check which specific repositories are added under /etc/yum. More on reddit.com
🌐 r/ansible
4
2
June 3, 2023
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
🌐
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.
🌐
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.
🌐
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 ...
🌐
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
Find elsewhere
🌐
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…
🌐
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.
🌐
AnsiblePilot
ansiblepilot.com › articles › how-to-install-ansible-in-amazon-linux-2
How to install Ansible in Amazon Linux 2 (AWS EC2) - Ansible install
January 1, 2024 - How to install Ansible in Amazon Linux 2 using the Amazon Extras Library \"amazon-linux-extras\" and the EPEL (Extra Packages for Enterprise Linux) repositories.
🌐
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
🌐
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.
🌐
Intuitive
intuitive.cloud › blog › configure-ansible-for-windows-and-linux-instances-on-aws
Configure Ansible for Windows and Linux Instances on AWS
Ansible is a powerful open-source automation tool that aims to simplify configuration management, enhance application deployments, and automate diverse IT tasks. This technical guide offers a detailed walkthrough for integrating Windows on AWS with Ansible.
🌐
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.
🌐
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
🌐
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.
🌐
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?
🌐
DEV Community
dev.to › aws-builders › installing-ansible-on-aws-ec2-instance-fj9
Installing Ansible on AWS EC2 Instance - DEV Community
December 25, 2022 - After connecting to your instance run the commands bellow. This will make sure that your instance is up to get and that you got access to Ansible repos for install.