become method

The setting that chooses which tool Ansible uses to escalate privilege: sudo by default, or alternatives such as su, doas or pbrun.

In more detail

Each method is a become plugin. become_flags passes extra arguments to the chosen tool and is rarely needed. Change the method only when the hosts use something other than sudo.

Related terms

Taught in

References

Certification courses