mirror of
https://github.com/Rudd-O/ansible-qubes.git
synced 2025-03-01 14:22:33 +01:00
Update qubesformation.py
This commit is contained in:
parent
8ad65b7e27
commit
9043a3a736
@ -22,15 +22,15 @@ def generate_datastructure(vms, task_vars):
|
|||||||
# This allows you to deploy in multiple stages which is useful in cases
|
# 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.
|
# where you want to create a template after another template is already provisioned.
|
||||||
print(task_vars)
|
print(task_vars)
|
||||||
print(task_vars.formation_vm_groups)
|
print(task_vars.ansible_facts.formation_vm_groups)
|
||||||
if hasattr(task_vars, 'formation_vm_groups'):
|
if hasattr(task_vars.ansible_facts, 'formation_vm_groups'):
|
||||||
continueLoop = true
|
continueLoop = true
|
||||||
print("formation")
|
print("formation")
|
||||||
print(task_vars['formation_vm_groups'])
|
print(task_vars.ansible_facts['formation_vm_groups'])
|
||||||
for group in task_vars['formation_vm_groups']:
|
for group in task_vars.ansible_facts['formation_vm_groups']:
|
||||||
print("group vars")
|
print("group vars")
|
||||||
print(task_vars.groups[group])
|
print(task_vars.ansible_facts.groups[group])
|
||||||
if n in task_vars.groups[group]:
|
if n in task_vars.ansible_facts.groups[group]:
|
||||||
continueLoop = false
|
continueLoop = false
|
||||||
if continueLoop:
|
if continueLoop:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user