# Proxmox module not recognized in playbook ? - Ansible 2.0

**URL:** <https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362>\
**Category:** Ansible Project\
**Created:** [September 26, 2015, 12:30am UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362 "2015-09-26T00:30:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 26, 2015, 12:30am UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/1 "2015-09-26T00:30:58Z")

</div>

Hello,

I want to test the new proxmox module for ansible 2.0. I followed the instructions for building and installing ansible from source. When I run my testing playbook it produces an error, any ideas on how I can get this thing working ?

`  
ERROR! ‘proxmox’ is not a valid attribute for a Play

The error appears to have been in ‘/home/rreeves/git\_repos/ansible-test-02/proxmox.yml’: line 3, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Create new containers

- name: Create test-system-01  
^ here  
`

this is my testing playbook

`

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 26, 2015, 8:37pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/2 "2015-09-26T20:37:46Z")

</div>

it cannot find the proxmox plugin, double check that it is installed  
on your system.

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 28, 2015, 7:51pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/3 "2015-09-28T19:51:32Z")

</div>

Thanks do you happen to know where is the default install location for modules ?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 28, 2015, 8:05pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/4 "2015-09-28T20:05:12Z")

</div>

that changes depending on how you isntalled

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 28, 2015, 8:17pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/5 "2015-09-28T20:17:54Z")

</div>

well I installed this from source following this guide.

[https://valdhaus.co/writings/ansible-ubuntu-debian/](https://valdhaus.co/writings/ansible-ubuntu-debian/)

This is the only proxmox modules I could locate

find / | grep proxmox  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox\_template.py  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox.py  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox.pyc  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox\_template.pyc

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 28, 2015, 8:20pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/6 "2015-09-28T20:20:54Z")

</div>

I would have said you are missing a 'git submodule init --recursive'  
step .. but then you would not have any modules, if you are running  
python2.7 it should find these in the python path, otherwise just try  
setting in ansible.cfg the path directly for core and extras to the  
subdirs of /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 28, 2015, 9:15pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/7 "2015-09-28T21:15:37Z")

</div>

**_okay I have looked through ansible.cfg and changed this line_**

library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules

**_sudo ansible --version_**  
ansible 2.0.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules

**_still the same problem_**

ERROR! ‘proxmox’ is not a valid attribute for a Play

The error appears to have been in ‘/home/ops/proxmox.yml’: line 3, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

**_git submodule status_**  
a4ac171a070551f1ed17a9c09b41d2481ad779af lib/ansible/modules/core (remotes/origin/revert-1564-win\_features\_improvements\_v2-26-ga4ac171)  
3c8c7168014234be339a42481d74f3954d47a4fc lib/ansible/modules/extras (heads/devel)

**_Is there a better source for installing the development environment ?_**

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [September 28, 2015, 9:28pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/8 "2015-09-28T21:28:25Z")

</div>

The following command should give you the path to the modules:

python -c ‘import ansible.modules as m; print m. **file** ’

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 28, 2015, 9:48pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/9 "2015-09-28T21:48:20Z")

</div>

thanks for the tip, it is the same location that I have assigned to library

python -c ‘import ansible.modules as m; print m. **file** ’  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/ **init**.pyc

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 28, 2015, 10:11pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/10 "2015-09-28T22:11:11Z")

</div>

try:  
library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core:  
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [September 28, 2015, 10:20pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/11 "2015-09-28T22:20:46Z")

</div>

**_with some testing it seems that the core modules do work… but still no luck with proxmox_**

**_/etc/ansible/ansible.cfg_**

inventory = /etc/ansible/hosts  
library = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core: /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras  
remote\_tmp = $HOME/.ansible/tmp  
pattern = \*  
forks = 5  
poll\_interval = 15  
sudo\_user = root  
#ask\_sudo\_pass = True  
#ask\_pass = True  
transport = smart  
#remote\_port = 22  
module\_lang = C

**_ansible --version_**

ansible 2.0.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core: /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras

**_ansible-playbook proxmox.yml_**

ERROR! ‘proxmox’ is not a valid attribute for a Play

The error appears to have been in ‘/home/ops/proxmox.yml’: line 3, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Create new containers

- proxmox: vmid=110 node=‘clawstah’ api\_user=‘root@pam’ …

---

<div class="post-metadata">

**Author:** ![rreeves](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rreeves](https://forum.ansible.com/u/rreeves)\
**Post date:** [October 1, 2015, 7:10pm UTC](https://forum.ansible.com/t/proxmox-module-not-recognized-in-playbook-ansible-2-0/19362/12 "2015-10-01T19:10:55Z")

</div>

I haven’t gotten any further than this, I suspect other people are having this problem as well ? This doesn’t seem stable for now, I guess I will wait. Thanks for the help though
