Fix error from newer ansible versions

This commit is contained in:
AlanCoding
2026-03-17 07:55:38 -04:00
parent 643a9849df
commit 4f52d72db3

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