Hi,
I need to run only one role with the become egal true and I’m trying to call it with this value but ansible doesn’t appreciate it
I made several tests, here is one of them:
[...]
tasks:
- name: include role with become true
include_role:
name: role_testing_variables
apply:
become: True
[...]
I’m not sure yet if it possible to do that with ansible?
Please let me known what’s wrong or do you have any idea to resolve it?
Regards, H
Nope, not for ansible.builint.ínclude_role. Ansible will fail with the following message if you do that: ERROR! 'become' is not a valid attribute for a IncludeRole
However, for ansible.builtin.import_role that is the way to go.