I solved it myself:


>   - group_by:
>      key: 
> "dist_{{ansible_distribution.lower()}}-{{ansible_distribution_major_version}}"
>
>   - name: Hostname der Server pro Distribution
>     debug: var="groups['{{ item }}']"
>     with_items: "{{ groups.keys()|select('match', 'dist_.*')|list }}"
>     run_once: true
>
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2105880f-27dc-4b8f-90d6-8c5e87fa8295%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to