# Proxmox Module keeps saying "authorization on proxmox cluster failed with exception: Couldn't authenticate user"

**URL:** <https://forum.ansible.com/t/proxmox-module-keeps-saying-authorization-on-proxmox-cluster-failed-with-exception-couldnt-authenticate-user/25239>\
**Category:** Ansible Project\
**Created:** [August 12, 2017, 11:10pm UTC](https://forum.ansible.com/t/proxmox-module-keeps-saying-authorization-on-proxmox-cluster-failed-with-exception-couldnt-authenticate-user/25239 "2017-08-12T23:10:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian1](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Florian1](https://forum.ansible.com/u/Florian1)\
**Post date:** [August 12, 2017, 11:10pm UTC](https://forum.ansible.com/t/proxmox-module-keeps-saying-authorization-on-proxmox-cluster-failed-with-exception-couldnt-authenticate-user/25239/1 "2017-08-12T23:10:45Z")

</div>

Hello there Ansible community,

I hope this is the right place to ask, if not please let me know.  
My goal is to fully automate the provising of containers, which includes the creation of a Proxmox container.

So I tried the following playbook task:

- name: ‘Create Proxmox container’  
proxmox: ‘api\_host=moon api\_user=root api\_password= vmid=200 hostname=ansible-test01 ip\_address=10.49.99.99 ostemplate=my-template.tgz password= state=present’

Whatever I try, the module tells me “authorization on proxmox cluster failed with exception: Couldn’t authenticate user”.  
Do I need to setup something special in Proxmox? On the Web GUI (Port 8006) the logins works without issues.

Any idea or pointers?  
Thanks a lot!

Florian

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 13, 2017, 12:51am UTC](https://forum.ansible.com/t/proxmox-module-keeps-saying-authorization-on-proxmox-cluster-failed-with-exception-couldnt-authenticate-user/25239/2 "2017-08-13T00:51:44Z")

</div>

> I hope this is the right place to ask, if not please let me know.

It's the correct place.

> So I tried the following playbook task:
> 
> - name: 'Create Proxmox container'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxmox: 'api\_host=moon api\_user=root api\_password=\<not-shown\> vmid=200  
> hostname=ansible-test01 ip\_address=10.49.99.99 ostemplate=my-template.tgz  
> password=\<not-shown\> state=present'
> 
> Whatever I try, the module tells me "authorization on proxmox cluster  
> failed with exception: Couldn't authenticate user".  
> Do I need to setup something special in Proxmox? On the Web GUI (Port 8006)  
> the logins works without issues.

Ansible documentation and Proxmox api documentation say you should use username root@pam , have you tried that?

---

<div class="post-metadata">

**Author:** ![Florian1](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Florian1](https://forum.ansible.com/u/Florian1)\
**Post date:** [August 13, 2017, 8:44am UTC](https://forum.ansible.com/t/proxmox-module-keeps-saying-authorization-on-proxmox-cluster-failed-with-exception-couldnt-authenticate-user/25239/3 "2017-08-13T08:44:36Z")

</div>

My mistake not to RTFM…  
Thanks a lot, works now! 🙂
