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.
jenkins-master
Dustin 2018-03-13 23:21:10 -05:00
parent 4811a726a1
commit 7de51f4bc5
1 changed files with 6 additions and 0 deletions

6
dyngroups.yml Normal file
View File

@ -0,0 +1,6 @@
- hosts: all
gather_facts: true
tasks:
- name: group hosts by distribution
group_by:
key={{ ansible_os_family }}