Changed from import_task to include_task

import loads at startup include is dynamically loaded.
This commit is contained in:
2026-04-29 13:19:28 -07:00
parent 4d63613d41
commit d2b24030f6

View File

@@ -29,7 +29,7 @@
# CARP pre-upgrade (demotion) # CARP pre-upgrade (demotion)
- name: Include CARP pre-upgrade logic - name: Include CARP pre-upgrade logic
ansible.builtin.import_tasks: carp_pre.yml ansible.builtin.include_tasks: carp_pre.yml
tags: [always, check, carp] tags: [always, check, carp]
when: when:
- ha_peer is defined - ha_peer is defined
@@ -38,7 +38,7 @@
# Upgrade execution # Upgrade execution
- name: Include upgrade execution - name: Include upgrade execution
ansible.builtin.import_tasks: upgrade.yml ansible.builtin.include_tasks: upgrade.yml
tags: [upgrade] tags: [upgrade]
when: when:
- perform_upgrade | bool - perform_upgrade | bool
@@ -46,7 +46,7 @@
# CARP post-upgrade (restore) # CARP post-upgrade (restore)
- name: Include CARP post-upgrade restore - name: Include CARP post-upgrade restore
ansible.builtin.import_tasks: carp_post.yml ansible.builtin.include_tasks: carp_post.yml
tags: [upgrade, carp] tags: [upgrade, carp]
when: when:
- ha_peer is defined - ha_peer is defined