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 (most recent call last):
File "/usr/bin/ansible-playbook", line 44, in <module>
import ansible.playbook
ImportError: No module named ansible.playbook
Using AMI ID: ami-a10897d6.
Any ideas?
Red Hat® Ansible® Automation Platform available from the Amazon Web Services (AWS) Marketplace offers all the benefits of Ansible automation, deployed on your AWS cloud. This self-managed offering is supported by Red Hat and provides the tools you need to deploy enterprise-wide automation.
Ansible is an open source tool that you can use to automate your AWS deployments. You can use it to define, deploy, and manage applications and services using automation playbooks. These playbooks enable you to define configurations once and deploy those configurations consistently across environments.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With