The larger group could work.   vars_files could be a good thing too.

vars_files:
   - rabbit_login_info.yml

etc

I tend to use group_vars pretty heavily, because they are automatically
loaded.





On Tue, Sep 9, 2014 at 6:55 AM, Hagai Kariti <[email protected]> wrote:

> Hi all
> I have a pattern question. Let's say I use ansible to both provision a
> server (RabbitMQ in my case) and to deploy an application that will connect
> to that server. Of course I save the login info in a vaulted group_vars
> file.
> However, since the server and the application run on different servers and
> are on different hostgroups, I need to save the login info twice - once in
> the rabbit group_var and once in the app group_var.
>
> There are several ways to solve this - I can put it once in the `all'
> group, create a 3rd hostgroup for 'rabbitmq related' servers, put the login
> info in an external file and include that... Any preference you guys have?
>
> 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/e09ca997-2005-4db6-8376-0131c317c367%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e09ca997-2005-4db6-8376-0131c317c367%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/CA%2BnsWgzPZqKUvdLRr2KLdmNufpM%3Dk13O13-1B18YDH1G2FyFYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to