Skip to content

Commit f7a2d7e

Browse files
author
Tobias Richter
committed
Only include in_place_upgrade when a installation exists
1 parent 2e6139d commit f7a2d7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
- name: Include tasks for in-place-upgrade when necessary.
5151
include_tasks: in_place_upgrade.yml
5252
# only perform in place upgrade when no jar containing aem_cms_version is present
53-
when: aem_cms_in_place_upgrade_existing_quickstarts | map('basename') | list | select('search', aem_cms_version) | list | length == 0
53+
when:
54+
- aem_cms_in_place_upgrade_existing_quickstarts | map('basename') | list | select('search', aem_cms_version) | list | length == 0
55+
- aem_cms_in_place_upgrade_existing_quickstarts | length > 0
5456

5557
- name: Unpack AEM.
5658
shell: "su {{ aem_cms_user }} -l -c 'java -jar {{ aem_cms_download_path }}/{{ aem_cms_quickstart_name }} -unpack -b {{ aem_cms_home }}'"

0 commit comments

Comments
 (0)