Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Removed unnecessary conditions when creating vm disks/nics (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
elcomtik authored and machacekondra committed Nov 5, 2019
1 parent a7ab5b0 commit 0efc48a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tasks/vm_state_present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
activate: "{{ item.1.activate | default(omit) }}"
wait: true
# When there is profile with disks, vms disks will update them
when: item.0.profile is defined and item.0.profile.disks is defined
with_subelements:
- "{{ create_vms }}"
- "disks"
Expand All @@ -70,7 +69,7 @@
mac_address: "{{ item.1.mac_address | default(omit) }}"
profile: "{{ item.1.profile | default(omit) }}"
network: "{{ item.1.network | default(omit) }}"
# When there is no profile NICs it will use vms disks
# When there is no profile NICs it will use vms NICs
with_subelements:
- "{{ create_vms }}"
- "profile.nics"
Expand All @@ -87,7 +86,6 @@
profile: "{{ item.1.profile | default(omit) }}"
network: "{{ item.1.network | default(omit) }}"
# When there is profile with nics, vms nics will update them
when: item.0.profile is defined and item.0.profile.nics is defined
with_subelements:
- "{{ create_vms }}"
- "nics"
Expand Down

0 comments on commit 0efc48a

Please sign in to comment.