Add runtime group assignment based on OS platform
This commit is contained in:
		
							
								
								
									
										12
									
								
								tasks/meta/runtime-group-determination.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tasks/meta/runtime-group-determination.yaml
									
									
									
									
									
										Normal 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
 | 
			
		||||
		Reference in New Issue
	
	Block a user