I highly recommend arranging variables in group_vars/ and host_vars/
directories versus trying to fit them into the INI file -- IMHO, it's a lot
easier to read.

In this case, group_vars/production:

ansible_ssh_user: production_username

Don't define ansible_ssh_user in "vars" as this will override that setting,
which seems to be not what you want to do.



On Mon, Mar 24, 2014 at 6:25 AM, Adrian Simmons <[email protected]> wrote:

> Right now the only thing I can think of is to work outside of ansible,
>> setting up the root account with vagrant to match that on the non-vagrant
>> hosts, so I can have a single setup play.
>>
> Looks like that question was to long and rambling to get answers :P
> At least writing it all down sometimes makes you think of the best answer.
>
> I took my own advice and did the work in vagrant instead, to set the root
> account up with ssh key access so my setup play can work just as it can on
> non-vagrant nodes. I'll have my main ansible play remove that key as a part
> of securing ssh access.
>
>
> --
> 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/c4955e25-6220-4048-b432-990c3f14db47%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/c4955e25-6220-4048-b432-990c3f14db47%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/CAEVJ8QNHg1PdVF%3Daqo3ttOs8q-J3wWECtVna8nM0Bt2%3D%2BF%3DteA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to