ansible.builtin.sudo – 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
even without specifying the collections:
keyword.
However, we recommend you use the FQCN for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same become plugin name.
New in version 2.8: of ansible.builtin
Synopsis
This become plugins allows your remote/login user to execute commands as another user via the sudo utility.
Parameters
Parameter |
Comments |
---|---|
Sudo executable Default: “sudo” Configuration:
|
|
Options to pass to sudo Default: “-H -S -n” Configuration:
|
|
Password to pass to sudo Configuration:
|
|
User you ‘become’ to execute the task Default: “root” Configuration:
|
Authors
ansible (@core)