Inheriting groups in Ansible inventory

Let's suppose that the groups [centos] and [ubuntu] are already defined in the inventory. Then:

[linux:children]
centos
ubuntu
this group which have as children centos and ubuntu groups will inherit all hosts from the groups [centos] and [ubuntu]