This PR contains a possible solution for https://github.com/owncloud-ansible/owncloud/issues/66. I changed the execution order so that the tmp directory is created first, then the download is initiated and afterwards the maintenance mode is activated. This way the maintenance mode isn't activated when the download fails.
The reason to mode the tmp directory creation into a separate block is that the tmp directory is also required, when the install shouldn't happen through a download (condition - not owncloud_install_from_filesystem | bool).
This PR contains a possible solution for https://github.com/owncloud-ansible/owncloud/issues/66. I changed the execution order so that the tmp directory is created first, then the download is initiated and afterwards the maintenance mode is activated. This way the maintenance mode isn't activated when the download fails.
The reason to mode the tmp directory creation into a separate block is that the tmp directory is also required, when the install shouldn't happen through a download (condition
- not owncloud_install_from_filesystem | bool
).