Skip to content

Commit

Permalink
integration: share the same disk image between targets (#326)
Browse files Browse the repository at this point in the history
integration: share the same disk image between targets

Avoid the need to redownload the RHEL image in every test. Right
now the image is only used in the vcenter_vm_customize test.
  • Loading branch information
goneri authored May 8, 2022
1 parent ad0eb5f commit 4da3cfa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
- name: Fetch the root disk
ansible.builtin.get_url:
url: "https://s3.us-east-2.amazonaws.com/ansible-team-cloud-images/{{ disk_name }}.vmdk-4"
dest: .
dest: "../{{ disk_name }}.vmdk-4"
checksum: sha256:e28616764ae9eb7e302f4642cace10f1596d8c7c254e2b9c4038c4cd726262ff

- name: Copy the disk on the ESXi local datastore
ansible.builtin.copy:
src: "{{ disk_name }}.vmdk-4"
src: "../{{ disk_name }}.vmdk-4"
dest: "/vmfs/volumes/local/{{ disk_name }}.vmdk-4"
delegate_to: esxi1.test
vars:
Expand Down

0 comments on commit 4da3cfa

Please sign in to comment.