From 72e30fa6061e1a82d73aa8cc0b0fc52956a3b1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Tue, 15 Oct 2024 15:58:24 +0200 Subject: [PATCH] =?UTF-8?q?Refs=20#8025=20Rol=20debian-base.=20bacula=20ta?= =?UTF-8?q?sk=20-=20don=C2=B4t=20restart=20if=20no=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/debian-base/tasks/bacula.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/debian-base/tasks/bacula.yml b/roles/debian-base/tasks/bacula.yml index 542da9f..64ddc9d 100644 --- a/roles/debian-base/tasks/bacula.yml +++ b/roles/debian-base/tasks/bacula.yml @@ -28,6 +28,7 @@ group: bacula mode: u=rw,g=r,o= backup: true + register: bacula_config - name: Configure master cert copy: content: "{{ master_cert_content }}" @@ -45,4 +46,5 @@ - name: Restart Bacula FD service service: name: bacula-fd - state: restarted \ No newline at end of file + state: restarted + when: bacula_config.changed \ No newline at end of file