From 54d6e576fb543c76f672603ca7f26913d58cf458 Mon Sep 17 00:00:00 2001 From: John Westcott <32551173+john-westcott-iv@users.noreply.github.com> Date: Tue, 1 Sep 2026 10:54:31 -0400 Subject: [PATCH] [AAP-90130] Updating project update playbook for ansible-core 2.20 (#16629) Updating project update playbook for ansible-core 2.20 --- awx/playbooks/project_update.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/awx/playbooks/project_update.yml b/awx/playbooks/project_update.yml index 22db2a7152..40354f2d6a 100644 --- a/awx/playbooks/project_update.yml +++ b/awx/playbooks/project_update.yml @@ -156,8 +156,8 @@ ansible.builtin.file: path: "{{ item.path }}" state: absent - loop: "{{ previous_archive.files }}" - when: previous_archive.files | default([]) + loop: "{{ previous_archive.files | default([]) }}" + when: previous_archive.files | default([]) | length > 0 - name: Set scm_version to archive sha1 checksum ansible.builtin.set_fact: @@ -253,7 +253,6 @@ skip: True changed_when: "'Nothing to do.' not in galaxy_collection_result.stdout" when: - - "ansible_version.full is version_compare('2.9', '>=')" - collections_enabled | bool - req_file | length > 0 tags: @@ -273,7 +272,6 @@ skip: True changed_when: "'Nothing to do.' not in galaxy_combined_result.stdout" when: - - "ansible_version.full is version_compare('2.10', '>=')" - collections_enabled | bool - roles_enabled | bool - req_file | length > 0