Skip to content

Commit

Permalink
unarchive is broken for zips so use unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-moody committed Jan 24, 2017
1 parent a2154d4 commit 1080eb2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roles/elgg/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
- name: download current version from our copy
shell: wget {{ xsce_download_url }}/elgg-{{ elgg_version }}.zip -c -P {{ downloads_dir }}
when: not {{ use_cache }} and not {{ no_network }}
when: not {{ use_cache }} and not {{ no_network }}
tags:
- download2

- name: Determine if software is already expanded
stat: path=/opt/elgg/index.php
register: elgg

# use unzip and shell until unarchive works again
# unarchive: dest=/opt/
# src={{ downloads_dir }}/elgg-{{ elgg_version }}.zip

- name: Expand it to our location
unarchive: dest=/opt/
src={{ downloads_dir }}/elgg-{{ elgg_version }}.zip
shell: "/usr/bin/unzip -o {{ downloads_dir }}/elgg-{{ elgg_version }}.zip -d /opt"
when: elgg.stat.exists is defined and not elgg.stat.exists

- name: change ownership
Expand Down

0 comments on commit 1080eb2

Please sign in to comment.