This commit is contained in:
@@ -82,12 +82,12 @@
|
||||
|
||||
# === Управление High Availability (HA) ===
|
||||
- name: Configure High Availability (HA)
|
||||
community.general.proxmox_ha:
|
||||
community.proxmox.proxmox_cluster_ha_resources:
|
||||
api_host: "{{ target_node }}"
|
||||
api_user: "{{ pve_user }}"
|
||||
api_password: "{{ pve_password }}"
|
||||
api_validate_certs: false
|
||||
sid: "{{ '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' }}"
|
||||
group: "{{ ha_group | default(omit) }}"
|
||||
# Задача выполнится только если ha_enabled=true (или если мы явно хотим её выключить)
|
||||
|
||||
Reference in New Issue
Block a user