From 8efbd560f945fae6cc9af3ecd879735f4590456a Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 7 Jul 2024 23:20:42 +0200 Subject: [PATCH] Use variable instead of image directly. --- .../docker_container/tasks/tests/options.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/targets/docker_container/tasks/tests/options.yml b/tests/integration/targets/docker_container/tasks/tests/options.yml index 612cc584..61061b8f 100644 --- a/tests/integration/targets/docker_container/tasks/tests/options.yml +++ b/tests/integration/targets/docker_container/tasks/tests/options.yml @@ -3607,11 +3607,11 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau - name: Remove hello-world image docker_image_remove: - name: hello-world:latest + name: "{{ docker_test_image_hello_world_platform }}" - name: platform docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present pull: true @@ -3624,7 +3624,7 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau # Docker daemon only returns 'linux' as the platform for the container, # so this has to be handled correctly by our additional code docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present platform: linux/amd64 @@ -3634,7 +3634,7 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau - name: platform (idempotency with shorter name) docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present platform: linux @@ -3644,7 +3644,7 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau - name: platform (idempotency with shorter name) docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present platform: amd64 @@ -3654,7 +3654,7 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau - name: platform (changed) docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present pull: true @@ -3669,7 +3669,7 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau - name: platform (idempotency) docker_container: - image: hello-world:latest + image: "{{ docker_test_image_hello_world_platform }}" name: "{{ cname }}" state: present pull: true