Error while installing Ansible on Azure

0 votes

I'm trying to install Ansible on Azure. I've executed the following commands to install:

$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible

But I get the following error:

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"ad_user": null, "append_tags": true, "client_id": null, "force": false, "location": null, "name": "test", "password": null, "profile": null, "secret": null, "state": "present", "subscription_id": null, "tags": null, "tenant": null}, "module_name": "azure_rm_resourcegroup"}, "msg": "Do you have azure==2.0.0rc5 installed? Try pip install azure==2.0.0rc5- No module named enum"}
Mar 26, 2019 in Ansible by Hans

1 answer to this question.

0 votes

There are few dependencies that you need to install for ansible to work with Azure. Execute the following commands:

sudo pip install enum
sudo pip install msrest
sudo pip install msrestazure
answered Mar 26, 2019 by Derryl

Related Questions In Ansible

0 votes
1 answer

Error while installing ansible-galaxy on Mac

Run the following to upgrade setuptools under ...READ MORE

answered Mar 13, 2019 in Ansible by Haider
0 votes
2 answers

Error while creating resource group on Azure using Ansible

Please check you indentation, remove all spaces ...READ MORE

answered Mar 17, 2020 in Ansible by Shrikant Yerge
+2 votes
1 answer

getting error while installing ansible on redhat8

The same error is reported in this ...READ MORE

answered Dec 4, 2019 in Ansible by Raveendiran
• 960 points
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing ansible on aws

Hey @Niana, I don't think you have ...READ MORE

answered Feb 4, 2019 in Ansible by Anushri

edited Feb 6, 2019 2,910 views
0 votes
1 answer