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.btop
parent
3cc501abef
commit
4a1e961d57
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue