mhutter / ansible-docker-systemd-service

Ansible role for creating Systemd services for docker containers
https://galaxy.ansible.com/mhutter/docker-systemd-service
MIT License
48 stars 30 forks source link

Make `docker_image.force_source` configurable #43

Closed andygrunwald closed 2 years ago

andygrunwald commented 2 years ago

Each ansible execution, this task is marked as changed. In my usecase, I don't want to have docker_image.force_source enforced.

This PR makes this setting configurable. The change is backwards compatible.

mhutter commented 2 years ago

What's the purpose of this feature? If you do not want to force pulls, just disable container_docker_pull. The image will still be pulled when the container is started.

andygrunwald commented 2 years ago

The usecase would be:

On top of this: If I want to execute this via CI to ensure changes like "If I would execute this, will there be a change?", this force setting would always say "Who knows?"

mhutter commented 2 years ago

Ah I see, makes sense