You can use become to change to this generic user and set sudo in your
commands.


*_*
*Dilson Tomé Rainov**Linkedin: *https://br.linkedin.com/in/dilsontome
*Cel: *+55-11-98013-7803 <https://telegram.me/dilsontome>



Em seg, 1 de out de 2018 às 09:52, Brad Van Orden <[email protected]>
escreveu:

> I'm looking for suggestions on how to add a two step login/switch to root
> to work within ansible.  I'm restricted to logining in to a server with my
> normal sid.  After that is accomplished, I then use su to switch to another
> account (giving a password when prompted).  From there, I can use sudo to
> switch to root.  Trying to wrap my head around putting that into practice
> within ansible.  Suggestions would be greatly appreciated.  :)
>
> Regards,
>
> Brad
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/8ec58472-2160-4243-8143-54393279639b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/8ec58472-2160-4243-8143-54393279639b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMMuGKqJ5XhoFwGd%3DuriV1jTBc0-FO_YvssETwOdw3B-3rR57g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to