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