From 55bf2759a9b4e08764896da223ac5f0cd49043cf Mon Sep 17 00:00:00 2001 From: SergeevDmitry Date: Tue, 4 Feb 2025 19:21:19 +0100 Subject: [PATCH] Update configuration file modification time on update --- controls/roles/update-services/tasks/update-service.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controls/roles/update-services/tasks/update-service.yml b/controls/roles/update-services/tasks/update-service.yml index ced86b363..4a015ccae 100644 --- a/controls/roles/update-services/tasks/update-service.yml +++ b/controls/roles/update-services/tasks/update-service.yml @@ -41,4 +41,11 @@ when: service_configuration.autoupdate and (new_service_docker_image_tag != service_docker_image_tag or new_service_docker_image_tag == 'latest') become: yes +- name: Update configuration file modification time + copy: + path: "/etc/stereum/services/{{ item }}.yaml" + state: touch + when: service_configuration.autoupdate and (new_service_docker_image_tag != service_docker_image_tag or new_service_docker_image_tag == 'latest') + become: yes + # EOF