community.general.pfexec become – profile based execution
This become plugin is part of the community.general collection (version 8.4.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.general.
To use it in a playbook, specify:
This become plugins allows your remote/login user to execute commands as another user via the pfexec utility.
Options to pass to pfexec
User you ‘become’ to execute the task
This plugin ignores this setting as pfexec uses it’s own
Toggle to wrap the command pfexec calls in ‘shell -c’ or not
This plugin ignores
become_useras pfexec uses it’s own
exec_attrto figure this out.