Hi all,
Here is the task I'm using in the playbook:
- name: Run the docker container for the service in QA
docker:
docker_api_version: "1.17"
name: "{{ service }}"
image: "{{docker_image_uri}}:{{ docker_tag }}"
env: "{{ ENV_VARS }}"
state: reloaded
pull: always
ports: "{{http_port}}:5000"
I'm using exactly the same code for 4 different services I'm deploying but I have the following problem with two of them:
The docker container is always reloaded regardless the docker image has changed or not
Given that situation, I need to understand how Ansible makes the decision to restart the container or not.
I hope I've been clear enough in my question. Any insight?
Thanks in advance.