# Can I splih group\_vars variables in more than one file?

**URL:** <https://forum.ansible.com/t/can-i-splih-group-vars-variables-in-more-than-one-file/19460>\
**Category:** Ansible Project\
**Created:** [October 8, 2015, 7:10am UTC](https://forum.ansible.com/t/can-i-splih-group-vars-variables-in-more-than-one-file/19460 "2015-10-08T07:10:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klemen\_Kobetic](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@Klemen\_Kobetic](https://forum.ansible.com/u/Klemen_Kobetic)\
**Post date:** [October 8, 2015, 7:10am UTC](https://forum.ansible.com/t/can-i-splih-group-vars-variables-in-more-than-one-file/19460/1 "2015-10-08T07:10:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 8, 2015, 1:44pm UTC](https://forum.ansible.com/t/can-i-splih-group-vars-variables-in-more-than-one-file/19460/2 "2015-10-08T13:44:00Z")

</div>

You can but the method will be slightly different.

“webservers” can be a directory with many files in it.

Example:

group\_vars/webservers/foo
