Trying to install Azure support for Ansible

28 views
Skip to first unread message

Ron Morin

unread,
Oct 19, 2016, 11:07:24 AM10/19/16
to Ansible Project
Hi,

I am trying to get Ansible to deploy resources to the Azure cloud and I am having an getting it to work.  I have a fresh install of Ubuntu 14.04

I have installed ansible by running the following:
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
I also installed pip by running the command
sudo easy_install pip
and that all that was done to get ansible install on the server.  I then started with tha Azure components for Ansible by following the instructions on https://docs.ansible.com/ansible/guide_azure.html.
I ran the command sudo pip install "azure==2.0.0rc5" to get the Azure Python SDK
I then created a simple yaml file to create a resource group and when I ran the playbook by running the command ansible-playbook test.yml -vvv the following error was returned
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"}

Any help would be appreciated!
Thanks



Reply all
Reply to author
Forward
0 new messages