Can't seem to connect to API

anyone21

New Member
Mar 21, 2024
1
0
1
Hello everyone,

Over the last few months I've been developing and ansible playbook to create several VM's on my proxmox server.
So far so good however I want now to get this to full production and tried the same playbook agains my new server and I can't seem to connect to API.

Here's what I've done
* Installed Proxmox
* Changed to no-subscription repository
* Updated and rebooted
* Created an user
* Created and API token
* Gave Administrator permissions to user and API token
* Ran ansible playbook which installed the following packages on proxmoxserver and tried to create a VM

python3-proxmoxer
python3-requests

I get this error:

proxmoxer.backends.https.AuthenticationError: Couldn't authenticate user: ansible@pve to https://172.27.1.200:8006/api2/json/access/ticket


I've formatted this new machine like 3 times and it's always the same :\

anyone here have any ideas?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!