community.general.sudosu become – Run tasks using sudo su -
This become plugin is part of the community.general collection (version 6.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:
New in community.general 2.4.0
This become plugin allows your remote/login user to execute commands as another user via the
Options to pass to
Password to pass to
User you ‘become’ to execute the task.
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication