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
parent
4811a726a1
commit
7de51f4bc5
|
@ -0,0 +1,6 @@
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
tasks:
|
||||||
|
- name: group hosts by distribution
|
||||||
|
group_by:
|
||||||
|
key={{ ansible_os_family }}
|
Loading…
Reference in New Issue