service-status-app

Service
Log | Files | Refs | README

commit 06bbaa070b4af02888911a0777c7d31dbfefb9bc
parent d8227340fbf950b884fc0d6e44f39c4b17bfdda7
Author: Karl Eklund <localpart@gmail.com>
Date:   Sat, 28 Mar 2026 14:23:41 +0100

Restart the container if the image has changed

Diffstat:
Mplaybook.yml | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/playbook.yml b/playbook.yml @@ -7,14 +7,17 @@ name: service-status-app state: present source: build + force_source: true build: path: "{{ playbook_dir }}/python_app" rm: true tag: latest + register: build_result - name: Run Docker container docker_container: name: service-status-app image: service-status-app:latest state: started + recreate: "{{ build_result.changed }}" ports: - "8000:8000"