2020-12-03 15:52:14 +01:00
|
|
|
---
|
2022-07-26 16:44:42 +02:00
|
|
|
- name: "nextcloud: {{ instance.name }}: Verzeichnis prüfen"
|
2020-12-03 15:52:14 +01:00
|
|
|
file:
|
|
|
|
path: "{{ nextcloud_install_path }}"
|
|
|
|
mode: 0755
|
|
|
|
state: directory
|
|
|
|
|
2022-07-26 16:44:42 +02:00
|
|
|
- name: "nextcloud: {{ instance.name }}: herunterladen und entpacken"
|
2020-12-03 15:52:14 +01:00
|
|
|
unarchive:
|
|
|
|
src: "{{ nextcloud_dl_url }}/{{ nextcloud_version }}.tar.bz2"
|
|
|
|
remote_src: true
|
|
|
|
extra_opts:
|
|
|
|
- "--strip-components=1"
|
|
|
|
dest: "{{ nextcloud_install_path }}"
|
2021-06-26 01:14:24 +02:00
|
|
|
owner: "{{ user }}"
|
|
|
|
group: "{{ user }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
mode: 0755
|
|
|
|
|
2022-07-26 16:44:42 +02:00
|
|
|
- name: "nextcloud: {{ instance.name }}: Installation"
|
2020-12-03 15:52:14 +01:00
|
|
|
command: >
|
|
|
|
php "{{ nextcloud_install_path }}"/occ maintenance:install --database "mysql"
|
2021-06-26 01:45:06 +02:00
|
|
|
--database-name "{{ instance.database }}" --database-user "{{ instance.database }}"
|
2021-06-26 02:32:29 +02:00
|
|
|
--database-pass "{{ nextcloud_db_password }}" --database-host "{{ database_host }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
--admin-user "{{ nextcloud_admin_user }}" --admin-pass "{{ nextcloud_admin_pw }}"
|
|
|
|
become: true
|
2021-06-26 01:45:06 +02:00
|
|
|
become_user: "{{ instance.user }}"
|
2020-12-03 15:52:14 +01:00
|
|
|
changed_when: true
|