Ansible + LXC(Proxmox)

时间:2019-01-09 09:38:18

标签: ansible lxc proxmox

问题:在可播放的剧本中创建LXC(Proxmox)。

剧本:

- name: Create LXC
  proxmox:
    node: PVE-03
    api_user: root@pam
    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

日志:

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"}

1 个答案:

答案 0 :(得分:0)

有必要更新代理:

apt full-upgrade