Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ansible/roles/vm_set/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
home_path: "{{ getent_passwd[ansible_user][4] }}"
when: home_path is not defined

# root_path is supposed to be absolute path.
# root_path is supposed to be absolute path.
- set_fact:
root_path: "{{ home_path + '/' + root_path }}"
when: "not '{{ root_path }}'.startswith('/')"
Expand Down Expand Up @@ -265,6 +265,10 @@
set_fact: VM_targets={{ VM_hosts | filter_vm_targets(topology['VMs'], VM_base) | sort }}
when: topology['VMs'] is defined

- name: Set fallback default value for VM_targets
set_fact: VM_targets={{ [] }}
when: VM_targets is not defined

- name: Set vm configuration properties when configuration is defined
set_fact: vm_properties="{{ configuration | expand_properties(configuration_properties) }}"
when: configuration is defined
Expand Down