Ansible Privilege Escalation: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Task-Level Privilege Escalation= | =Task-Level Privilege Escalation= | ||
Privilege escalation on a task basis is controlled with the following privilege escalation task configuration attributes: | |||
* <tt>[[become|Ansible_Concepts#become]]</tt> | |||
* <tt>[[become_exe|Ansible_Concepts#become_exe]]</tt> | |||
* <tt>[[become_flags|Ansible_Concepts#become_flags]]</tt> | |||
* <tt>[[become_method|Ansible_Concepts#become_method]]</tt> | |||
* <tt>[[become_user|Ansible_Concepts#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:22, 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:
- Ansible_Concepts#become
- Ansible_Concepts#become_exe
- Ansible_Concepts#become_flags
- Ansible_Concepts#become_method
- Ansible_Concepts#become_user