Ansible privilege escalation

From wikieduonline
Revision as of 15:35, 6 January 2022 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


fatal: [your_machine.com]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}


ansible --help
Privilege Escalation Options:
  control how and which user you become as on target hosts  
  --become-method BECOME_METHOD
                        privilege escalation method to use (default=sudo), use `ansible-doc -t become -l` to list valid choices.
  --become-user BECOME_USER
                        run operations as this user (default=root)
  -K, --ask-become-pass
                        ask for privilege escalation password
  -b, --become          run operations with become (does not imply password prompting)

Related

See also

Advertising: