Fix jinja2 error from newer ansible versions (#16356)

* Fix error from newer ansible versions

* Include fix for setting cachable

* Revert "Include fix for setting cachable"

This reverts commit 477293c258.
This commit is contained in:
Alan Rominger
2026-03-17 13:36:33 -04:00
committed by GitHub
parent 643a9849df
commit 1646694258

View File

@@ -236,7 +236,7 @@
changed_when: "'was installed successfully' in galaxy_result.stdout" changed_when: "'was installed successfully' in galaxy_result.stdout"
when: when:
- roles_enabled | bool - roles_enabled | bool
- req_file - req_file | length > 0
tags: tags:
- install_roles - install_roles
@@ -255,7 +255,7 @@
when: when:
- "ansible_version.full is version_compare('2.9', '>=')" - "ansible_version.full is version_compare('2.9', '>=')"
- collections_enabled | bool - collections_enabled | bool
- req_file - req_file | length > 0
tags: tags:
- install_collections - install_collections
@@ -276,7 +276,7 @@
- "ansible_version.full is version_compare('2.10', '>=')" - "ansible_version.full is version_compare('2.10', '>=')"
- collections_enabled | bool - collections_enabled | bool
- roles_enabled | bool - roles_enabled | bool
- req_file - req_file | length > 0
tags: tags:
- install_collections - install_collections
- install_roles - install_roles