Discussion:
[ansible-project] azure required for this module error
r***@architech.ca
2015-07-29 15:46:03 UTC
Permalink
Hello,

I am new to ansible and trying to create new VM in Azure with azure module
but getting the error:

failed: [localhost] => {"failed": true, "parsed": false}

failed=True msg='azure required for this module'


Here is the playbook:


# Provision ubuntu virtual machine example

- hosts: localhost

connection: local

tasks:

- name: install ubuntu

azure:

name: ubuntu-test

role_size: A2

image: Ubuntu 15.04

location: 'East US'

user: architech

ssh_cert_path: /Users/someuser/someuser.pem

storage_account: https://someurl.blob.core.windows.net/vhds

wait: yes


Any help would be appreciated.


Thank you,

Roman.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8728edea-d9a5-479c-ac7b-4afc4b7fcdee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
J Hawkesworth
2015-07-29 16:00:05 UTC
Permalink
Looks like to use that module, you need to install a python library called
'azure'. Looking here http://docs.ansible.com/ansible/azure_module.html,
it seems to need to be a version later than 0.7.1

This is probably something you can install using pip / yum / apt-get.

Hope this helps.

Jon
Post by r***@architech.ca
Hello,
I am new to ansible and trying to create new VM in Azure with azure module
failed: [localhost] => {"failed": true, "parsed": false}
failed=True msg='azure required for this module'
# Provision ubuntu virtual machine example
- hosts: localhost
connection: local
- name: install ubuntu
name: ubuntu-test
role_size: A2
image: Ubuntu 15.04
location: 'East US'
user: architech
ssh_cert_path: /Users/someuser/someuser.pem
storage_account: https://someurl.blob.core.windows.net/vhds
wait: yes
Any help would be appreciated.
Thank you,
Roman.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b43126df-e4e0-498e-aaf7-b35079135bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
r***@architech.ca
2015-07-29 16:17:02 UTC
Permalink
I checked and it looks like it is installed

/Library/Python/2.7/site-packages/ansible/modules/core/cloud/azure
drwxr-xr-x 6 root wheel 204 16 Jul 11:29 .
drwxr-xr-x 13 root wheel 442 16 Jul 11:29 ..
-rw-r--r-- 1 root wheel 0 16 Jul 11:28 __init__.py
-rw-r--r-- 1 root wheel 165 16 Jul 11:29 __init__.pyc
-rw-r--r-- 1 root wheel 19663 16 Jul 11:28 azure.py
-rw-r--r-- 1 root wheel 16599 16 Jul 11:29 azure.pyc

Is this the right place I am looking at??
Post by J Hawkesworth
Looks like to use that module, you need to install a python library called
'azure'. Looking here http://docs.ansible.com/ansible/azure_module.html,
it seems to need to be a version later than 0.7.1
This is probably something you can install using pip / yum / apt-get.
Hope this helps.
Jon
Post by r***@architech.ca
Hello,
I am new to ansible and trying to create new VM in Azure with azure
failed: [localhost] => {"failed": true, "parsed": false}
failed=True msg='azure required for this module'
# Provision ubuntu virtual machine example
- hosts: localhost
connection: local
- name: install ubuntu
name: ubuntu-test
role_size: A2
image: Ubuntu 15.04
location: 'East US'
user: architech
ssh_cert_path: /Users/someuser/someuser.pem
storage_account: https://someurl.blob.core.windows.net/vhds
wait: yes
Any help would be appreciated.
Thank you,
Roman.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6ab54daa-10e7-4f8b-bffd-6b3ec431ba83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Martin
2015-07-29 17:27:13 UTC
Permalink
Hi,
You are looking at the ansible module. Usually those modules also need a
python library.
/Martin
Post by r***@architech.ca
I checked and it looks like it is installed
/Library/Python/2.7/site-packages/ansible/modules/core/cloud/azure
drwxr-xr-x 6 root wheel 204 16 Jul 11:29 .
drwxr-xr-x 13 root wheel 442 16 Jul 11:29 ..
-rw-r--r-- 1 root wheel 0 16 Jul 11:28 __init__.py
-rw-r--r-- 1 root wheel 165 16 Jul 11:29 __init__.pyc
-rw-r--r-- 1 root wheel 19663 16 Jul 11:28 azure.py
-rw-r--r-- 1 root wheel 16599 16 Jul 11:29 azure.pyc
Is this the right place I am looking at??
Post by J Hawkesworth
Looks like to use that module, you need to install a python library
called 'azure'. Looking here
http://docs.ansible.com/ansible/azure_module.html, it seems to need to
be a version later than 0.7.1
This is probably something you can install using pip / yum / apt-get.
Hope this helps.
Jon
Post by r***@architech.ca
Hello,
I am new to ansible and trying to create new VM in Azure with azure
failed: [localhost] => {"failed": true, "parsed": false}
failed=True msg='azure required for this module'
# Provision ubuntu virtual machine example
- hosts: localhost
connection: local
- name: install ubuntu
name: ubuntu-test
role_size: A2
image: Ubuntu 15.04
location: 'East US'
user: architech
ssh_cert_path: /Users/someuser/someuser.pem
storage_account: https://someurl.blob.core.windows.net/vhds
wait: yes
Any help would be appreciated.
Thank you,
Roman.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6ab54daa-10e7-4f8b-bffd-6b3ec431ba83%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/6ab54daa-10e7-4f8b-bffd-6b3ec431ba83%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
Mobil: +43 / 660 / 62 45 103
UID: ATU68801424
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK1mKET1VCxwBd-70d0d-iP31VRs9g-N6kpxODb2wkxRpTDoOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
r***@architech.ca
2015-07-29 20:07:45 UTC
Permalink
I got it now.
Once I ran pip install azure, it worked.

Thank you.
Hi,
* ansible azure module
* azure Python library
The former requires the latter to work.
But both can be _installed_ separately. That doesn't mean anyone is useful
to you without the other. Check your distribution docs for how to install
packages. Or if it's not packaged try to read up on "Python pip".
HTH,
Martin
Ok, I run ansible-doc -l and it shows that azure is installed.
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
a10_server Manage A10 Networks
AX/SoftAX/Thunder/vThunder devices
a10_service_group Manage A10 Networks
AX/SoftAX/Thunder/vThunder devices
a10_virtual_server Manage A10 Networks
AX/SoftAX/Thunder/vThunder devices
acl Sets and retrieves file ACL information.
add_host add a host (and alternatively a group) to
the ansible-playbook in-memory inventory
airbrake_deployment Notify airbrake about app deployments
alternatives Manages alternative programs for common
commands
apache2_module enables/disables a module of the Apache2
webserver
apt Manages apt-packages
apt_key Add or remove an apt key
apt_repository Add and remove APT repositories
apt_rpm apt_rpm package manager
assemble Assembles a configuration file from
fragments
assert Fail with custom message
at Schedule the execution of a command or
script file via the at command.
authorized_key Adds or removes an SSH authorized key
azure create or terminate a virtual machine in
azure
bigip_facts Collect facts from F5 BIG-IP devices
................
Post by Martin
Hi,
You are looking at the ansible module. Usually those modules also need a
python library.
/Martin
I checked and it looks like it is installed
Post by Martin
Post by r***@architech.ca
/Library/Python/2.7/site-packages/ansible/modules/core/cloud/azure
drwxr-xr-x 6 root wheel 204 16 Jul 11:29 .
drwxr-xr-x 13 root wheel 442 16 Jul 11:29 ..
-rw-r--r-- 1 root wheel 0 16 Jul 11:28 __init__.py
-rw-r--r-- 1 root wheel 165 16 Jul 11:29 __init__.pyc
-rw-r--r-- 1 root wheel 19663 16 Jul 11:28 azure.py
-rw-r--r-- 1 root wheel 16599 16 Jul 11:29 azure.pyc
Is this the right place I am looking at??
Post by J Hawkesworth
Looks like to use that module, you need to install a python library
called 'azure'. Looking here
http://docs.ansible.com/ansible/azure_module.html, it seems to need
to be a version later than 0.7.1
This is probably something you can install using pip / yum / apt-get.
Hope this helps.
Jon
Post by r***@architech.ca
Hello,
I am new to ansible and trying to create new VM in Azure with azure
failed: [localhost] => {"failed": true, "parsed": false}
failed=True msg='azure required for this module'
# Provision ubuntu virtual machine example
- hosts: localhost
connection: local
- name: install ubuntu
name: ubuntu-test
role_size: A2
image: Ubuntu 15.04
location: 'East US'
user: architech
ssh_cert_path: /Users/someuser/someuser.pem
storage_account: https://someurl.blob.core.windows.net/vhds
wait: yes
Any help would be appreciated.
Thank you,
Roman.
--
You received this message because you are subscribed to the Google
Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send
Post by r***@architech.ca
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6ab54daa-10e7-4f8b-bffd-6b3ec431ba83%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/6ab54daa-10e7-4f8b-bffd-6b3ec431ba83%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
Mobil: +43 / 660 / 62 45 103
UID: ATU68801424
--
--
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
Mobil: +43 / 660 / 62 45 103
UID: ATU68801424
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4473c720-51de-49c7-b662-cecb03b16ca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...