Add runtime group assignment based on OS platform

This commit is contained in:
2021-09-08 21:07:14 -04:00
parent 2814d42148
commit 8fd063d21d
4 changed files with 37 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
---
- name: Group EdgeOS hosts
when: ansible_kernel.endswith('UBNT')
changed_when: false
group_by:
key: edgeos
- name: Group supported Linux hosts
when: ansible_distribution == "Rocky"
changed_when: false
group_by:
key: linux