mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-10-31 03:28:56 +01:00 
			
		
		
		
	Update qubesformation.py
This commit is contained in:
		
							parent
							
								
									f1db77fb05
								
							
						
					
					
						commit
						feff9f41a7
					
				| @ -2,7 +2,6 @@ import collections | ||||
| import os | ||||
| import sys | ||||
| import tempfile | ||||
| import json | ||||
| from ansible import errors | ||||
| from ansible.plugins.action.template import ActionModule as template | ||||
| 
 | ||||
| @ -22,14 +21,15 @@ def generate_datastructure(vms, task_vars): | ||||
|         # 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. | ||||
|         print(json.dumps(task_vars, default=vars)) | ||||
|         print(task_vars.ansible_facts) | ||||
|         if hasattr(task_vars.ansible_facts, 'formation_vm_groups'): | ||||
|             continueLoop = true | ||||
|             print("formation") | ||||
|             print(task_vars.ansible_facts['formation_vm_groups']) | ||||
|         print("hostvars") | ||||
|         print(task_vars['hostvars'][n]) | ||||
|         print("formation") | ||||
|         print(task_vars.ansible_facts['formation_vm_groups']) | ||||
|         print("testy") | ||||
|         print(task_vars['hostvars'][n]['formation_vm_groups']) | ||||
|         if hasattr(task_vars.ansible_facts, 'formation_vm_groups'): | ||||
|             continueLoop = true | ||||
|             for group in task_vars.ansible_facts['formation_vm_groups']: | ||||
|                 print("group vars") | ||||
|                 print(task_vars.ansible_facts.groups[group]) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Brian Zalewski
						Brian Zalewski