Updated to support split carp roles
This commit is contained in:
@@ -13,15 +13,15 @@
|
||||
ansible.builtin.import_tasks: update_check.yml
|
||||
tags: [always, check]
|
||||
|
||||
# --- CARP/HA PRE-UPGRADE LOGIC (before upgrade) ---
|
||||
- name: Include CARP/HA pre-upgrade logic
|
||||
ansible.builtin.import_tasks: carp.yml
|
||||
# CARP pre-upgrade (demotion)
|
||||
- name: Include CARP pre-upgrade logic
|
||||
ansible.builtin.import_tasks: carp_pre.yml
|
||||
tags: [always, check, carp]
|
||||
when:
|
||||
- ha_peer is defined
|
||||
- ha_peer | length > 0
|
||||
|
||||
# --- UPGRADE EXECUTION ---
|
||||
# Upgrade execution
|
||||
- name: Include upgrade execution
|
||||
ansible.builtin.import_tasks: upgrade.yml
|
||||
tags: [upgrade]
|
||||
@@ -29,15 +29,16 @@
|
||||
- perform_upgrade | bool
|
||||
- upgrade_available | bool
|
||||
|
||||
# --- CARP/HA POST-UPGRADE RESTORE (after upgrade) ---
|
||||
- name: Include CARP/HA post-upgrade restore
|
||||
ansible.builtin.import_tasks: carp.yml
|
||||
# CARP post-upgrade (restore)
|
||||
- name: Include CARP post-upgrade restore
|
||||
ansible.builtin.import_tasks: carp_post.yml
|
||||
tags: [upgrade, carp]
|
||||
when:
|
||||
- ha_peer is defined
|
||||
- ha_peer | length > 0
|
||||
- perform_upgrade | bool
|
||||
|
||||
# Verification
|
||||
- name: Include post-upgrade verification
|
||||
ansible.builtin.import_tasks: verify.yml
|
||||
tags: [upgrade, verify]
|
||||
|
||||
Reference in New Issue
Block a user