1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/nextcloud/tasks/F18.yml

18 lines
684 B
YAML
Raw Normal View History

2017-05-29 22:02:55 +00:00
- name: Remove /etc/nextcloud to avoid confusion as we use the config in {{ nextcloud_prefix }}/nextcloud/config/
2017-12-08 06:39:50 +00:00
file:
path: /etc/nextcloud
state: absent
2017-05-29 22:02:55 +00:00
# but we use the tar file to get the latest version; really only benefits the xo4 on fedora 18
2017-12-08 06:45:02 +00:00
- name: Download latest Nextcloud software to /opt/iiab/download/{{ nextcloud_src_file }}
2017-12-08 06:39:50 +00:00
get_url:
2017-12-08 06:45:02 +00:00
url: "{{ nextcloud_dl_url }}/{{ nextcloud_orig_src_file }}"
2017-12-08 06:39:50 +00:00
dest: "{{ downloads_dir }}/{{ nextcloud_src_file }}"
timeout: "{{ download_timeout }}"
when: internet_available | bool
2017-05-29 22:02:55 +00:00
- name: Copy it to permanent location /opt
2017-12-08 06:39:50 +00:00
unarchive:
src: "{{ downloads_dir }}/{{ nextcloud_src_file }}"
dest: /opt/