aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/infra_create_vms/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/infra_create_vms/tasks/main.yml')
-rw-r--r--ansible/roles/infra_create_vms/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/ansible/roles/infra_create_vms/tasks/main.yml b/ansible/roles/infra_create_vms/tasks/main.yml
index 62a023e7e..4d47f44ff 100644
--- a/ansible/roles/infra_create_vms/tasks/main.yml
+++ b/ansible/roles/infra_create_vms/tasks/main.yml
@@ -20,9 +20,15 @@
- set_fact:
mac_address_counter: 0
+- set_fact:
+ default_bridge: "{{ item }}"
+ when:
+ - item.default_gateway is defined
+ - item.default_gateway == True
+ with_items: "{{ infra_deploy_vars.networks }}"
+
- name: Create XML file
include_tasks: configure_vm.yml
- extra_vars: "{{ mac_address_counter }}"
loop_control:
loop_var: node_item
with_items: "{{ infra_deploy_vars.nodes }}"