Check if file already downloaded
buildbot/travis_bionic Build done. Details

This commit is contained in:
swapnil 2022-03-23 19:53:47 +05:30
parent a325d719c1
commit a628e944a6
1 changed files with 5 additions and 5 deletions

View File

@ -48,17 +48,17 @@
state: directory state: directory
- name: General Changes | Check if already downloaded - name: General Changes | Check if already downloaded
file: shell:
path: "{{ home_directory }}/Downloads/update-xfce-bigsur" cmd: "ls {{ home_directory }}/Downloads/update-xfce-bigsur"
state: directory register: has_content
register: update_xfce_bigsur_directory ignore_errors: yes
- name: General Changes | Download and Unzip update-xfce-bigsur.zip - name: General Changes | Download and Unzip update-xfce-bigsur.zip
unarchive: unarchive:
src: "{{ update_xfce_bigsur_file_url }}" src: "{{ update_xfce_bigsur_file_url }}"
dest: "{{ home_directory }}/Downloads" dest: "{{ home_directory }}/Downloads"
remote_src: yes remote_src: yes
when: update_xfce_bigsur_directory.changed when: has_content.stdout_lines | length == 0
- name: General Changes | Copy wallpapers to ~/Pictures - name: General Changes | Copy wallpapers to ~/Pictures
copy: copy: