Files
configpolicy/dyngroups.yml
Dustin C. Hatch 7de51f4bc5 dyngroups: Dynamic host classification
The `dyngroups.yml` playbook groups hosts dynamically based on gathered
facts. Currently, the `ansible_os_family` fact is used to group hosts by
Linux distribution.
2018-03-27 20:44:43 -05:00

7 lines
129 B
YAML

- hosts: all
gather_facts: true
tasks:
- name: group hosts by distribution
group_by:
key={{ ansible_os_family }}