I currently manage my Docker services using Ansible. Images are controlled by the Docker Compose file, which is located in /opt/ipaccess/docker/.
My upgrade process is as follows:
Stop services
docker_service: project_src=/opt/ipaccess/docker/ state=absent
Upload new docker images and upload them
Starting Services
docker_service: project_src=/opt/ipaccess/docker/ state=present
What I'm looking for is a way to just stop / start what I downloaded (I know this, since the influencing services are known in the context of the playlist).
I read the documentation online, but it is not clear how to tell the docker_service module to only stop / start a specific service.
source
share