Fix module name;Add indentation;Update dependencies #2
continuous-integration/drone/push Build is passing Details

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

View File

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