dyngroups: Also group by distribution and version
Adding dynamic groups for speciffic Linux distributions and versions thereof so we can apply settings based on those properties.
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: group hosts by distribution
|
||||
group_by:
|
||||
key: '{{ ansible_distribution }}'
|
||||
changed_when: false
|
||||
- name: group hosts by distribution+version
|
||||
group_by:
|
||||
key: '{{ ansible_distribution }}{{ ansible_distribution_major_version }}'
|
||||
changed_when: false
|
||||
- name: group hosts by os family
|
||||
group_by:
|
||||
key: '{{ ansible_os_family }}'
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user