include_role: apply become_user cannot handle jinja-phrased condition #80869
Labels
affects_2.16
bug
This issue/PR relates to a bug.
data_tagging
module
This issue/PR relates to a module.
verified
This issue has been verified/reproduced by maintainer
Summary
When using the ansible-core 2.14's include_role module it cannot resolve a condition phrased in jinja-template in the apply parameter for become_user.
It passes the entire string to the included role and then fails because it is an unprivileged user.
Worked fine on 2.13.
Issue Type
Bug Report
Component Name
ansible.builtin.include_role
Ansible Version
Configuration
OS / Environment
OracleLinux 8
Steps to Reproduce
Playbook
roles/taskname/tasks/main.yml
Expected Results
Output from ansible-core 2.13.7
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: