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.
This commit is contained in:
6
dyngroups.yml
Normal file
6
dyngroups.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: group hosts by distribution
|
||||
group_by:
|
||||
key={{ ansible_os_family }}
|
||||
Reference in New Issue
Block a user