This commit is contained in:
@@ -86,8 +86,10 @@
|
|||||||
- name: Configure High Availability (HA)
|
- name: Configure High Availability (HA)
|
||||||
community.proxmox.proxmox_cluster_ha_resources:
|
community.proxmox.proxmox_cluster_ha_resources:
|
||||||
api_host: "{{ target_node }}"
|
api_host: "{{ target_node }}"
|
||||||
api_user: "{{ pve_user }}"
|
#api_user: "{{ pve_user }}"
|
||||||
api_password: "{{ pve_password }}"
|
#api_password: "{{ pve_password }}"
|
||||||
|
api_token_id: "{{ var_api_token_id }}"
|
||||||
|
api_token_secret: "{{ var_api_token_secret }}"
|
||||||
#api_validate_certs: false
|
#api_validate_certs: false
|
||||||
name: "{{ 'ct' if type | default('vm') == 'lxc' else 'vm' }}:{{ allocated_id }}"
|
name: "{{ 'ct' if type | default('vm') == 'lxc' else 'vm' }}:{{ allocated_id }}"
|
||||||
state: "{{ 'enabled' if (ha_enabled | default(false) | bool) else 'disabled' }}"
|
state: "{{ 'enabled' if (ha_enabled | default(false) | bool) else 'disabled' }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user