ansible.builtin.sudo become – Substitute User DO
Note
This become plugin is part of ansible-core
and included in all Ansible installations. In most cases, you can use the short plugin name sudo
. However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.sudo
for easy linking to the plugin documentation and to avoid conflicting with other collections that may have the same become plugin name.
New in Ansible 2.8
Synopsis
- This become plugin allows your remote/login user to execute commands as another user via the sudo utility.
Parameters
Parameter | Comments |
---|---|
become_exe string | Sudo executable Default: Configuration:
|
become_flags string | Options to pass to sudo Default: Configuration:
|
become_pass string | Password to pass to sudo Configuration:
|
become_user string | User you ‘become’ to execute the task Default: Configuration:
|
Collection links
© 2012–2018 Michael DeHaan
© 2018–2024 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sudo_become.html