Ansible Privilege Escalation: Difference between revisions

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


Privilege escalation on a task basis is controlled with the following privilege escalation task configuration attributes:
Privilege escalation on a task basis is controlled with the following privilege escalation task configuration attributes:
* <tt>[[become|Ansible_Concepts#become]]</tt>
* <tt>[[Ansible_Concepts#become|become]]</tt>
* <tt>[[become_exe|Ansible_Concepts#become_exe]]</tt>
* <tt>[[Ansible_Concepts#become_exe|become_exe]]</tt>
* <tt>[[become_flags|Ansible_Concepts#become_flags]]</tt>
* <tt>[[Ansible_Concepts#become_flags|become_flags]]</tt>
* <tt>[[become_method|Ansible_Concepts#become_method]]</tt>
* <tt>[[Ansible_Concepts#become_method|become_method]]</tt>
* <tt>[[become_user|Ansible_Concepts#become_user]]</tt>
* <tt>[[Ansible_Concepts#become_user|become_user]]</tt>


=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:23, 13 April 2021

External

Internal

Overview

To ask for privilege escalation password, use:

ansible-playbook --ask-become-pass

Task-Level Privilege Escalation

Privilege escalation on a task basis is controlled with the following privilege escalation task configuration attributes:

Become Plugins

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