From 07dd795a68c04ecab6efb006e1b743002d7d6ab1 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Thu, 3 Nov 2022 00:23:40 +0100 Subject: [PATCH] Enabling timer should trigger restart --- .../services/c-deploy/service-deploy/service.d/lrproxy.yml | 4 +++- .../services/c-deploy/service-deploy/service.d/rproxy.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/playbooks/tasks/services/c-deploy/service-deploy/service.d/lrproxy.yml b/playbooks/tasks/services/c-deploy/service-deploy/service.d/lrproxy.yml index 3565135..984c354 100644 --- a/playbooks/tasks/services/c-deploy/service-deploy/service.d/lrproxy.yml +++ b/playbooks/tasks/services/c-deploy/service-deploy/service.d/lrproxy.yml @@ -40,12 +40,14 @@ name: rsync-certificates.timer enabled: yes scope: user + register: rsync_certificates_timer - name: Record changes set_fact: service_changed: true when: rproxy_synchronise is changed or - dhparam is changed + dhparam is changed or + rsync_certificates_timer is changed become_user: "{{ service_user_name }}" diff --git a/playbooks/tasks/services/c-deploy/service-deploy/service.d/rproxy.yml b/playbooks/tasks/services/c-deploy/service-deploy/service.d/rproxy.yml index 33e76d1..52922aa 100644 --- a/playbooks/tasks/services/c-deploy/service-deploy/service.d/rproxy.yml +++ b/playbooks/tasks/services/c-deploy/service-deploy/service.d/rproxy.yml @@ -19,12 +19,14 @@ name: container-rproxy-certbot.timer enabled: yes scope: user + register: container_rproxy_certbot_timer - name: Record changes set_fact: service_changed: true when: rproxy_synchronise is changed or - dhparam is changed + dhparam is changed or + container_rproxy_certbot_timer is changed become_user: "{{ service_user_name }}"