Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install ansible on amazon aws?

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?

like image 774
Keilo Avatar asked Jun 12 '15 21:06

Keilo


People also ask

Is Ansible available on AWS?

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.

How does Ansible work with AWS?

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.


1 Answers

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
like image 97
Keilo Avatar answered Oct 20 '22 11:10

Keilo