Reduce loop list length;Test vApp properties
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
- import_tasks: vapp.yml
|
||||
- import_tasks: vcenter.yml
|
||||
- import_tasks: metacluster.yml
|
||||
|
@ -0,0 +1,19 @@
|
||||
- name: Check for expected vApp properties
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- vapp[item] is defined
|
||||
- (vapp[item] | length) > 0
|
||||
loop:
|
||||
- guestinfo.dnsserver
|
||||
- guestinfo.gateway
|
||||
- guestinfo.hostname
|
||||
- guestinfo.ipaddress
|
||||
- guestinfo.prefixlength
|
||||
- guestinfo.rootsshkey
|
||||
- hv.fqdn
|
||||
- hv.password
|
||||
- hv.username
|
||||
- metacluster.fqdn
|
||||
- metacluster.password
|
||||
- metacluster.token
|
||||
- metacluster.vip
|
Reference in New Issue
Block a user