ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles ERROR! 'failed_when' is not a valid attribute for a TaskInclude The error appears to be in '/tmp/collections-YcE/ansible_collections/fedora/linux_system_roles/tests/sudo/tests_check_if_configured.yml': line 18, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Check header for ansible_managed, fingerprint ^ here