My guess here is that the inventory gets generated before the setup module 
runs, which means that the inventory plugin can't be used for that.

You should be able to get the desired effect using 
https://docs.ansible.com/ansible/latest/modules/group_by_module.html

- group_by:
    key: distro_{{ ansible_distribution }}

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a0128aa3-5400-48c7-b4fb-80790006bb8e%40googlegroups.com.

Reply via email to