Restricting the Ansible pull operation (lmn-updater) on changes in the repository

This commit is contained in:
Raphael Dannecker 2026-02-26 12:35:30 +01:00
parent f70f907206
commit e7e66145a9

View file

@ -4,6 +4,6 @@ Description=Run LMN Client updates via ansible-pull
[Service] [Service]
Type=oneshot Type=oneshot
User=root 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 -i {{ misc_updater_inventory }} --url={{ misc_updater_repository }} -C {{ misc_updater_branch }} lmn-client.yml