Hello,

the ansible_ssh_user is the one you use for logging in via SSH, not the one
you switch to when sudoing

Regards
Mirko
-- 
Sent from my mobile
On Dec 9, 2014 10:49 PM, "Adithya Khamithkar" <[email protected]> wrote:

> Hi I have written a playbook for Ansible to install a few application. I
> am having trouble as I have to run every thing as root which is not a good
> idea.
>
> So I have created a sudo user and have created a private key for
> authentication.
>
> Could some one help me in defining the hosts file for this scenario.
>
> My current hosts file is like this:
>
> [webserver]
> web-01 ansible_ssh_host=192.168.0.11 ansible_ssh_user=root
>
> Thanks,
>
> --
> 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/5cabe179-61c6-47fd-a654-37bbc02427ef%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/5cabe179-61c6-47fd-a654-37bbc02427ef%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/CAK8jvqwS1vhnmGxsT5xV%3D9O1QuX1k11huZvZ9eXoN%2B0pTOAPZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to