I am trying to get Ansible to deploy resources to the Azure cloud and I am having an error while getting it in 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 was done to get ansible install on the server. Then I started with the Azure components for Ansible by following the instructions given here.
I ran the command sudo pip install "azure==2.0.0rc5"
to get the Azure Python SDK. Then I 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"}