Ansible Privilege Escalation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


=Overview=
=Overview=
To ask for privilege escalation password, use:
To ask for privilege escalation password, use:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
ansible-playbook --ask-become-pass
ansible-playbook --ask-become-pass
</syntaxhighlight>
</syntaxhighlight>
=Task-Level Privilege Escalation=
See: {{Ansible_Concepts#become|Task &#124; become configuration element}}
=Become Plugins=
=Become Plugins=
{{External|https://docs.ansible.com/ansible/latest/plugins/become.html#become-plugins}}
{{External|https://docs.ansible.com/ansible/latest/plugins/become.html#become-plugins}}

Revision as of 04:16, 13 April 2021

External

Internal

Overview

To ask for privilege escalation password, use:

ansible-playbook --ask-become-pass

Task-Level Privilege Escalation

See: Template:Ansible Concepts

Become Plugins

https://docs.ansible.com/ansible/latest/plugins/become.html#become-plugins