Sudo/Root Execution
Medium
- Category
- Privilege Escalation
- Content
- `--force-handlers` to run even on failure — or `meta: flush_handlers` ## Become (Privilege Escalation) - `become: yes` to run as root — `become_user:` for specific user - `become_method: sudo` is default — use `su` or `doas` if needed - Password needed for sudo — `--ask-become-pass` or in ansible.cfg - Some modules need become at task level — even if playbook has `become: yes`
- Confidence
- 80% confidence
- Finding
- Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
