title: Installing Azure support for Ansible
body: <p>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</p>
  
  <p>I have installed ansible by running the following:</p>
  
  <pre><code> - sudo apt-get install software-properties-common
   - sudo apt-add-repository ppa:ansible/ansible
   - sudo apt-get update
   - sudo apt-get install ansible
  </code></pre>
  
  <p>I also installed pip by running the command</p>
  
  <pre><code> - sudo easy_install pip
  </code></pre>
  
  <p>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 <a href="https://docs.ansible.com/ansible/guide_azure.html" rel="nofollow">here</a>.</p>
  
  <p>I ran the command <code>sudo pip install "azure==2.0.0rc5"</code> 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 <code>ansible-playbook test.yml -vvv</code> the following error was returned:</p>
  
  <blockquote>
    <p>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 <code>pip install azure==2.0.0rc5</code>- No module named enum"}</p>
  </blockquote>