Thanks for you reply, Adam!
I think, this solution is working like charm, but main reason for defined 
users like variables - is keeping all information in separate file. It is 
more simple for managing information and apply changes...
For example, if i have 10 host groups and 40 users, and changing some 
information or add field for user - i need to change each entry in my 
playbook (or multiple playbooks). If i use separate file - i need to change 
only this file :)


среда, 26 февраля 2014 г., 8:56:49 UTC+4 пользователь Adam Morris написал:
>
>
> try something like this for your variables...
> vars:
>   ssh_users: 
>     - {{ name: user1, shell: /bin/ksh }}
>     - {{ name: user2, shell: /bin/bash }}
>
> I hope that this helps,
>
> Adam
>
>>  
>>
>

-- 
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/0116939b-887d-4e18-a233-c6c6a82184c1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to