You can place your common variables in group_vars/all/.
Did you read this http://docs.ansible.com/ansible/playbooks_variables.html ?

On Wednesday, December 30, 2015 at 4:48:06 PM UTC+5, Yassen Damyanov wrote:
>
> Guys,
>
> Could you suggest a way to handle data common to a set of roles, e.g. the 
> IP address of the DNS or the DHCP server on the network? These seem to be 
> fixed for now but can change in future and I'd like to have a convenient 
> way to do a change in one place and then have all roles working with the 
> new setting.
>
> What I can think of: a dedicated task-less role having these defined in 
> its variables; then other roles should depend on it and thus get the 
> above-mentioned stuff "for free".
>
> Let know how you do it and what would you recommend.
> Thanks,
> -Y.
>

-- 
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/0fc9b892-f7a4-422e-b54c-4973b373e231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to