diff --git a/roles/mgrote_cv4pve_autosnap/tasks/main.yml b/roles/mgrote_cv4pve_autosnap/tasks/main.yml index 012d49c0..d60a2f92 100644 --- a/roles/mgrote_cv4pve_autosnap/tasks/main.yml +++ b/roles/mgrote_cv4pve_autosnap/tasks/main.yml @@ -22,10 +22,12 @@ remote_src: yes creates: /usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }} list_files: true + register: download - name: move ansible.builtin.command: | mv /usr/local/bin/cv4pve/cv4pve-autosnap /usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }} + when: download.changed - name: template cv4pve.service ansible.builtin.template: