API Proxmox : authentification par mot de passe (PROXMOX_CLAUDE / PROXMOX_PASSWORD) en plus du jeton
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5846487f07
commit
34004ad371
4 files changed
+19
-8
No files matched your search
@@ -8,6 +8,7 @@
|
||||
- proxmox_template
|
||||
|
||||
# 2) Clonage des VM par l'API, avec le compte dédié bwpoc@pve (jeton API).
|
||||
# Authentification : jeton (PVE_TOKEN_SECRET) ou mot de passe (PROXMOX_CLAUDE / PROXMOX_PASSWORD).
|
||||
# A sauter si vous fournissez vos propres VM (Debian 12/13 avec accès SSH).
|
||||
- name: Clonage des VM par l'API Proxmox
|
||||
hosts: proxmox
|
||||
@@ -20,8 +21,9 @@
|
||||
group/community.proxmox.proxmox:
|
||||
api_host: "{{ ansible_host }}"
|
||||
api_user: "{{ pve_api_user }}"
|
||||
api_token_id: "{{ pve_api_token_id }}"
|
||||
api_token_secret: "{{ pve_api_token_secret }}"
|
||||
api_token_id: "{{ pve_api_token_id if pve_api_token_secret | length > 0 else omit }}"
|
||||
api_token_secret: "{{ pve_api_token_secret if pve_api_token_secret | length > 0 else omit }}"
|
||||
api_password: "{{ pve_api_password if pve_api_token_secret | length == 0 else omit }}"
|
||||
validate_certs: "{{ pve_validate_certs }}"
|
||||
roles:
|
||||
- proxmox_vm
|
||||
Reference in new issue
Block a user