# Changes to yaml inventory parser in 2.6

**URL:** <https://forum.ansible.com/t/changes-to-yaml-inventory-parser-in-2-6/27822>\
**Category:** Ansible Project\
**Created:** [June 19, 2018, 2:10pm UTC](https://forum.ansible.com/t/changes-to-yaml-inventory-parser-in-2-6/27822 "2018-06-19T14:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_C\_Rigler](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Post date:** [June 19, 2018, 2:10pm UTC](https://forum.ansible.com/t/changes-to-yaml-inventory-parser-in-2-6/27822/1 "2018-06-19T14:10:35Z")

</div>

Hello,

I installed 2.6 rc3 on a CentOS 7 machine this morning with the rpm from [releases.ansible.com](http://releases.ansible.com).

First thing I noticed is that there are some significant changes to the yaml inventory parser. Most notably is that this doesn’t work anymore:

group1:  
children:  
group2:

group2:  
hosts:  
host1:  
host2:

So if I do “ansible group1 --list-hosts” it complains about this:

[WARNING]: Skipping ‘group2’ as this is not a valid group definition

So is this a feature and I can no longer reference groups defined elsewhere in the file or is it a bug?

Thanks,  
Steve
