Hi,
I have installed on a debian 10 buster server Proxmox 6.1-8.
I'm trying to run an Ansible script that adds a public key to the proxmox server.
The code, using the Ansible docs:
I'm using the root@pam user and password for api_user and api_password.
Also tryied to create a new user for the api with:
But always got the same error.
My question is how can I create a proper api_user and api_password to use on my Ansible playbook?
Thank you very much.
I have installed on a debian 10 buster server Proxmox 6.1-8.
I'm trying to run an Ansible script that adds a public key to the proxmox server.
The code, using the Ansible docs:
Code:
- proxmox:
api_user: " {{ proxmox.api_user }}"
api_password: "{{ proxmox.api_password }}"
api_host: tfg
password: "{{ proxmox.api_password }}"
pubkey: "{{ public_keys.victor_home }}"
I'm using the root@pam user and password for api_user and api_password.
Also tryied to create a new user for the api with:
Code:
pvesh create /access/users -userid testuser2@pve
But always got the same error.
"msg": "authorization on proxmox cluster failed with exception: Couldn't authenticate user:
My question is how can I create a proper api_user and api_password to use on my Ansible playbook?
Thank you very much.