Can I splih group_vars variables in more than one file?

17 views
Skip to first unread message

Klemen Kobetič

unread,
Oct 8, 2015, 9:34:57 AM10/8/15
to Ansible Project
I now have

group_vars/webservers

is there a way that I make, let's say group_vars/webservers.part1 and group_vars/webservers.part2 ?

my point is that those files would be stil automatically picked up by ansible (because of the webservers name in filename)

or am I doing something wrong and should I take a different approach?

Matt Martz

unread,
Oct 8, 2015, 9:44:08 AM10/8/15
to ansible...@googlegroups.com
You can but the method will be slightly different.

"webservers" can be a directory with many files in it.

Example:

group_vars/webservers/foo
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/03665dfe-aaf1-4094-8be7-ab825781d030%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages