This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
api_token_secret: "{{ pve_token_secret }}"
|
||||
validate_certs: false
|
||||
name: "{{ 'ct' if type | default('vm') == 'lxc' else 'vm' }}:{{ allocated_id }}"
|
||||
state: "{{ 'enabled' if (ha_enabled | default(false) | bool) else 'disabled' }}"
|
||||
state: "{{ 'present' if (ha_enabled | default(false) | bool) else 'absent' }}"
|
||||
group: "{{ ha_group | default(omit) }}"
|
||||
# Задача выполнится только если ha_enabled=true (или если мы явно хотим её выключить)
|
||||
when: ha_enabled | default(false) | bool
|
||||
|
||||
Reference in New Issue
Block a user