Closed anton-dealmeida closed 7 years ago
@dagwieers, @pileofrogs, ping. This issue is waiting on your response. click here for bot help
Could you try using two tasks instead ? One using the get_url or uri module and the second doing the unarchive (using a local file) ?
@dagwieers, @pileofrogs, ping. This issue is still waiting on your response. click here for bot help
Hi there, so I got it to work again. The guys from CraftCMS didn't release the .zip file correctly so it did work, this did work correctly but the content of the zip was different as the actual files I targeted was a whole directory level deeper.
Great, thanks for reporting back !
notabug
ISSUE TYPE
COMPONENT NAME
unarchive
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
I've been using this script and all since Ansible 2.1, I moved onto 2.2 rc1 2 weeks ago and this has been working well for setting up new environments. Suddenly today it Unzip's into 2 random folders and Unarchive does not extract to /var/www/ anymore like it used to. It now creates a folder called Craft... whatever the extension is instead of extracting the content of that zip into this directory. It also creates a folder called __MACOSX which contains the original zip and it leaves both of those ugly folders in the directory. Then my next command completely breaks and the whole rest of the playbook that used to work breaks. I'm not entirely sure what changed over the weekend.
STEPS TO REPRODUCE
EXPECTED RESULTS
What has been happening and that I expect to happen is it downloads the .zip for CraftCMS, it extracts the content of that zip file into /var/www and sets the owner and group of the files to www-data. So I expect to see a /craft and a /public directory inside of /var/www/ after the first task runs.
ACTUAL RESULTS