S
S
speedvm2019-01-08 20:34:15
LXC
speedvm, 2019-01-08 20:34:15

How to create lxc in proxmox via ansible?

Good day to all!
I have a proxmox cluster and ansible server. The node on which I am trying to create a container has python-proxmoxer installed from the sid of the debian repository. I'm trying to create lxc:

- name: Создание контейнера
  proxmox:
    node: PVE-03
    vmid: 115
    api_user: [email protected]
    api_password: password
    api_host: 192.168.254.23
    password: 11111
    hostname: ans
    ostemplate: data:vztmpl/debian-9.0-standard_9.5-1_amd64.tar.gz

Exhaust:
fatal: [192.168.254.23]: FAILED! => {"changed": false, "msg": "authorization on proxmox cluster failed with exception: Couldn't authenticate user: ********@pam to https://192.168.254.23:8006/api2/json/access/ticket"}

Help where you can.
PS: ansible updated to 2.7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
speedvm, 2019-01-09
@speedvm

apt full-upgrade on proxmox saved the father of Russian democracy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question