Skip to content

Commit

Permalink
Update configuration file modification time on update
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeevDmitry committed Feb 4, 2025
1 parent 52e8814 commit 55bf275
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controls/roles/update-services/tasks/update-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 55bf275

Please sign in to comment.