Error while install...
Clear all

Error while installing Ansible on Azure  


Noble Member
Joined: 4 months ago
Posts: 1161
31/03/2021 11:04 am  

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"}

Ganesh A
Noble Member
Joined: 4 months ago
Posts: 1170
31/03/2021 11:04 am  

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