This is the latest (stable) Ansible community documentation. For Red Hat Ansible Automation Platform subscriptions, see Life Cycle for version details.
This become plugin is part of ansible-core and included in all Ansible
installations. In most cases, you can use the short
plugin name
su.
However, we recommend you use the Fully Qualified Collection Name (FQCN)ansible.builtin.su for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same become plugin name.
List of localized strings to match for prompt detection
If empty we’ll use the built in one
Do NOT add a colon (:) to your custom entries. Ansible adds a colon at the end of each prompt; if you add another one in your string, your prompt will fail with a “Timeout” error.
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.