diff --git a/tasks/general/scripts/install.yml b/tasks/general/scripts/install.yml index 193337f..b083ebc 100644 --- a/tasks/general/scripts/install.yml +++ b/tasks/general/scripts/install.yml @@ -8,7 +8,7 @@ mode: '0755' - name: General | Scripts | Install | Copy Files - copy: + ansible.builtin.copy: src: 'scripts/' dest: "{{ global_bin }}/" owner: root @@ -20,6 +20,8 @@ if [[ -e {{ global_bin }}/{{ item }} ]]; then rm -v {{ global_bin }}/{{ item }} fi + register: shell_check + changed_when: shell_check.rc == 0 loop: - compress-video.sh - compress-images.sh