Add pause to loop iteration; Replace wrong variable reference
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-11-09 15:35:42 +01:00
parent 2ca91b5dea
commit 838c7b6361
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
- name: Import container images
ansible.builtin.command:
cmd: k3s ctr image import {{ item }}
cmd: k3s ctr image import {{ item }} --digests
chdir: /opt/metacluster/container-images
loop: "{{ query('ansible.builtin.fileglob', '/opt/metacluster/container-images/*.tar') | sort }}"
loop_control:
label: "{{ item | basename }}"
pause: 30

View File

@ -40,7 +40,7 @@
- name: Create snapshot on deployed VM's
community.vmware.vmware_guest_snapshot:
folder: "{{ vcenter_info.folder }}"
name: "{{ (item | basename | split('.'))[:-1] | join('.') }}"
name: "{{ item.instance.hw_name }}"
state: present
snapshot_name: "{{ ansible_date_time..iso8601_basic_short }}-base"
loop: "{{ ova_deploy.results }}"