Skip to content

Commit

Permalink
prepare vcsim role - using podman instead of docker while pulling vcs…
Browse files Browse the repository at this point in the history
…im image
  • Loading branch information
bardielle committed May 21, 2024
1 parent a54d1e9 commit 238df5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/24-use-podman-in-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Use podman for pulling the vcsim image in the integration role prepare_vcsim
17 changes: 9 additions & 8 deletions tests/integration/targets/prepare_vcsim/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
- name: Install dependencies
ansible.builtin.pip:
name:
- pyvmomi
- requests
- pyVmomi

- name: Run vcsim
community.docker.docker_container:
name: vcsim
image: vmware/vcsim
- name: Run soap vcSim
containers.podman.podman_container:
name: vmwaresoap

image: docker.io/vmware/vcsim:latest
state: started
recreate: yes
exposed_ports:
expose:
- 8989
ports:
- 8989:8989

- name: Pause for 5 sec to start vcsim
- name: Pause
ansible.builtin.pause:
seconds: 5
seconds: 10

0 comments on commit 238df5c

Please sign in to comment.