Changed from import_task to include_task
import loads at startup include is dynamically loaded.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
# CARP pre-upgrade (demotion)
|
||||
- name: Include CARP pre-upgrade logic
|
||||
ansible.builtin.import_tasks: carp_pre.yml
|
||||
ansible.builtin.include_tasks: carp_pre.yml
|
||||
tags: [always, check, carp]
|
||||
when:
|
||||
- ha_peer is defined
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
# Upgrade execution
|
||||
- name: Include upgrade execution
|
||||
ansible.builtin.import_tasks: upgrade.yml
|
||||
ansible.builtin.include_tasks: upgrade.yml
|
||||
tags: [upgrade]
|
||||
when:
|
||||
- perform_upgrade | bool
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
# 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]
|
||||
when:
|
||||
- ha_peer is defined
|
||||
|
||||
Reference in New Issue
Block a user