Reduce loop list length;Test vApp properties
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-07 22:11:09 +01:00
parent 4d2513c1a5
commit b8cb76e7ac
5 changed files with 52 additions and 5 deletions

View File

@ -1,2 +1,3 @@
- import_tasks: vapp.yml
- import_tasks: vcenter.yml
- import_tasks: metacluster.yml

View File

@ -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