File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change
1
+ minor_changes :
2
+ - deploy_ovf - Fixed the pre-check assertions for deploy_ovf_template var since it is required with content libraries and optional otherwise
Original file line number Diff line number Diff line change 10
10
quiet : true
11
11
fail_msg : Variable must be set when using this role.
12
12
13
- - name : Check Deployment Variables
13
+ - name : Check Non-Library OVF Deployment Variables
14
14
ansible.builtin.assert :
15
15
that : >-
16
- (deploy_ovf_url is defined and ( deploy_ovf_template is not defined and deploy_ovf_library is not defined) ) or
17
- (deploy_ovf_url is not defined and ( deploy_ovf_template is defined or deploy_ovf_library is defined) )
16
+ (deploy_ovf_url is defined and deploy_ovf_template is not defined) or
17
+ (deploy_ovf_url is not defined and deploy_ovf_template is defined)
18
18
quiet : true
19
- fail_msg : deploy_ovf_url is mutually exclusive with deploy_ovf_template and deploy_ovf_library.
19
+ fail_msg : One of deploy_ovf_url or deploy_ovf_template is required when deploy_ovf_library is not used.
20
+ when : deploy_ovf_library is not defined
21
+
22
+ - name : Check Content Library Deployment Variables
23
+ ansible.builtin.assert :
24
+ that : deploy_ovf_template is defined
25
+ quiet : true
26
+ fail_msg : deploy_ovf_template is required when deploy_ovf_library is defined.
27
+ when : deploy_ovf_library is defined
20
28
21
29
- name : Check Datastore Variables
22
30
ansible.builtin.assert :
Original file line number Diff line number Diff line change 15
15
cluster : " {{ deploy_ovf_cluster_name | default(omit) }}"
16
16
17
17
name : " {{ deploy_ovf_vm_name }}"
18
- ovf : " {{ deploy_ovf_template }}"
18
+ ovf : " {{ deploy_ovf_template | default(omit) }}"
19
19
esxi_hostname : " {{ deploy_ovf_esxi_host | default(omit) }}"
20
20
folder : " {{ deploy_ovf_folder | default(omit) }}"
21
21
resource_pool : " {{ deploy_ovf_resource_pool | default(omit) }}"
You can’t perform that action at this time.
0 commit comments