Fix module name;Add indentation;Update dependencies #2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-07-29 11:39:39 +02:00
parent c9f3c648b7
commit 277c91eeba
2 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
- attribute: cluster
moref: >-
$(govc object.collect -json VirtualMachine:{{ moref_id }} | \
jq -r '.[] | select(.Name == "runtime").Val.Host | .Type + ":" + .Value')
jq -r '.[] | select(.Name == "runtime").Val.Host | .Type + ":" + .Value')
part: (NF-1)
- attribute: datacenter
moref: VirtualMachine:{{ moref_id }}
@ -21,22 +21,22 @@
- attribute: datastore
moref: >-
$(govc object.collect -json VirtualMachine:{{ moref_id }} | \
jq -r '.[] | select(.Name == "datastore").Val.ManagedObjectReference | .[].Type + ":" + .[].Value')
jq -r '.[] | select(.Name == "datastore").Val.ManagedObjectReference | .[].Type + ":" + .[].Value')
part: NF
- attribute: folder
moref: >-
$(govc object.collect -json VirtualMachine:{{ moref_id }} | \
jq -r '.[] | select(.Name == "parent").Val | .Type + ":" + .Value')
jq -r '.[] | select(.Name == "parent").Val | .Type + ":" + .Value')
part: 0
# - attribute: host
# moref: >-
# $(govc object.collect -json VirtualMachine:{{ moref_id }} | \
# jq -r '.[] | select(.Name == "runtime").Val.Host | .Type + ":" + .Value')
# jq -r '.[] | select(.Name == "runtime").Val.Host | .Type + ":" + .Value')
# part: NF
- attribute: network
moref: >-
$(govc object.collect -json VirtualMachine:{{ moref_id }} | \
jq -r '.[] | select(.Name == "network").Val.ManagedObjectReference | .[].Type + ":" + .[].Value')
jq -r '.[] | select(.Name == "network").Val.ManagedObjectReference | .[].Type + ":" + .[].Value')
part: NF
loop_control:
label: "{{ item.attribute }}"
@ -62,7 +62,7 @@
with_fileglob: /opt/workloadcluster/node-templates/*.ova
- name: Deploy OVA templates on hypervisor
community.vmware.vmware_ovf_deploy:
community.vmware.vmware_deploy_ovf:
hostname: "{{ vapp['hv.fqdn'] }}"
validate_certs: no
username: "{{ vapp['hv.username'] }}"

View File

@ -124,11 +124,11 @@ dependencies:
- ansible.utils
- community.crypto
- community.general
- community.vmware
- kubernetes.core
- vmware.vmware_rest
# container_images:
# - quay.io/skopeo/stable:v1.8.0
# - <usefulcontainer>
static_binaries:
- filename: govc
@ -147,6 +147,6 @@ dependencies:
packages:
- lvm2
- python3-dnspython
- python3-jmespath
- python3-passlib
- python3-pyvmomi