I might be missing something but using group_vars solves this problem
cleanly for me.

group_vars/all are 'globals'
group_vars/webservers are available to all webservers

and so on.

On 8 May 2014 18:27, Petr Sukharev <[email protected]> wrote:
> Hi!
>
> I have multiple projects and try to use ansible for all of them.
>
> One of idea was to make my playbooks more flexible by specified variable
> files for each project. In this case i have one role - deploy software and
> multiple playbooks with config like this
>
> <script
> src="https://gist.github.com/anonymous/35117b7088079fba8af4.js";></script>
>
>
> But when i try to use some variables from dbvars file for hosts in db group
> - ansible say that cant find this variable. If i specified in this host
> group project_name - all work fine... It make me little confused, because i
> specified this variable for all hosts on top...
>
> --
> 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/1d8f9386-ad46-4aa9-9f3c-172274e154da%40googlegroups.com.
> 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/CAK5eLPQEHGUsDxEfiaeYxz_KD1dp%3DrqKTAcSwpC9nWSsR64J3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to