From e7e66145a968bd8af83d4d5a5ee8a07a05746e13 Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Thu, 26 Feb 2026 12:35:30 +0100 Subject: [PATCH] Restricting the Ansible pull operation (lmn-updater) on changes in the repository --- roles/lmn_misc/templates/lmn-updater.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lmn_misc/templates/lmn-updater.service.j2 b/roles/lmn_misc/templates/lmn-updater.service.j2 index 64a65d9..76aad89 100644 --- a/roles/lmn_misc/templates/lmn-updater.service.j2 +++ b/roles/lmn_misc/templates/lmn-updater.service.j2 @@ -4,6 +4,6 @@ Description=Run LMN Client updates via ansible-pull [Service] Type=oneshot User=root -ExecStart=/usr/bin/ansible-pull --verbose --vault-password-file /root/.inventory-pw -l %H -d /root/lmn-client \ +ExecStart=/usr/bin/ansible-pull --only-if-changed --verbose --vault-password-file /root/.inventory-pw -l %H -d /root/lmn-client \ -i {{ misc_updater_inventory }} --url={{ misc_updater_repository }} -C {{ misc_updater_branch }} lmn-client.yml