Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ansible/roles/vm_set/tasks/add_topo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@
docker_container:
name: ptf_{{ vm_set_name }}
image: "{{ docker_registry_host }}/{{ ptf_imagename }}:{{ ptf_imagetag }}"
pull: yes
# Set pull to 'missing' when ptf_modified is True (PR test with preloaded image)
# to avoid pulling and overwriting the local image. For nightly tests where
# ptf_modified is False/undefined, use 'always' to always pull the latest image.
# The ptf_modified flag is passed from Azure Pipelines through Elastictest's
# add_topo_params as "-e ptf_modified=True" when testing PR built docker-ptf images.
pull: "{{ 'missing' if (ptf_modified | default(false) | bool) else 'always' }}"
state: started
restart: no
network_mode: none
Expand Down
Loading