Rebase node templates;Switch to linked clones;Rename dictionary;Add debugging
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-08 08:54:33 +01:00
parent 5985615868
commit 8926b72344
4 changed files with 49 additions and 30 deletions

View File

@ -37,6 +37,17 @@
loop_control:
index_var: index
- name: Create snapshot on deployed VM's
community.vmware.vmware_guest_snapshot:
folder: "{{ vcenter_info.folder }}"
name: "{{ (item | basename | split('.'))[:-1] | join('.') }}"
state: present
snapshot_name: "{{ ansible_date_time..iso8601_basic_short }}-base"
loop: "{{ ova_deploy.results }}"
loop_control:
index_var: index
label: "{{ item.item }}"
- name: Mark deployed VM's as templates
community.vmware.vmware_guest:
name: "{{ item.instance.hw_name }}"