mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-10-31 11:38:55 +01:00 
			
		
		
		
	Update qubesformation.py
This commit is contained in:
		
							parent
							
								
									6984a541c6
								
							
						
					
					
						commit
						a41aa775d2
					
				| @ -17,12 +17,17 @@ def generate_datastructure(vms, task_vars): | ||||
|     dc = collections.OrderedDict | ||||
|     d = dc() | ||||
|     for n, data in vms.items(): | ||||
|         print(n) | ||||
|         # This block will skip any VMs that are not in the groups defined in the 'formation_vm_groups' variable | ||||
|         # This allows you to deploy in multiple stages which is useful in cases | ||||
|         # where you want to create a template after another template is already provisioned. | ||||
|         if hasattr(task_vars, 'formation_vm_groups'): | ||||
|             continueLoop = true | ||||
|             print("formation") | ||||
|             print(task_vars['formation_vm_groups']) | ||||
|             for group in task_vars['formation_vm_groups']: | ||||
|                 print("group vars") | ||||
|                 print(task_vars.groups[group]) | ||||
|                 if n in task_vars.groups[group]: | ||||
|                     continueLoop = false | ||||
|             if continueLoop: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Brian Zalewski
						Brian Zalewski