nextcloud: Aktualisiere Variablen, automatische Versionsermittlung

This commit is contained in:
phil 2022-10-08 22:47:54 +02:00
parent e3e6cf142b
commit d0caf506f9
5 changed files with 28 additions and 24 deletions

View file

@ -7,21 +7,23 @@
- name: "nextcloud: {{ instance.name }}: herunterladen und entpacken"
unarchive:
src: "{{ nextcloud_dl_url }}/{{ nextcloud_version }}.tar.bz2"
src: "{{ nextcloud_dl_url }}"
remote_src: true
extra_opts:
- "--strip-components=1"
dest: "{{ nextcloud_install_path }}"
owner: "{{ user }}"
group: "{{ user }}"
owner: "{{ instance.user }}"
group: "{{ instance.user }}"
mode: 0755
- name: "nextcloud: {{ instance.name }}: Installation"
command: >
php "{{ nextcloud_install_path }}"/occ maintenance:install --database "mysql"
--database-name "{{ instance.database }}" --database-user "{{ instance.database }}"
--database-pass "{{ nextcloud_db_password }}" --database-host "{{ database_host }}"
--admin-user "{{ nextcloud_admin_user }}" --admin-pass "{{ nextcloud_admin_pw }}"
command:
cmd: >
php occ maintenance:install --database "mysql"
--database-name "{{ instance.database }}" --database-user "{{ instance.database }}"
--database-pass "{{ nextcloud_db_password }}" --database-host "{{ database_host }}"
--admin-user "{{ nextcloud_admin_user }}" --admin-pass "{{ nextcloud_admin_pw }}"
chdir: "{{ nextcloud_install_path }}"
become: true
become_user: "{{ instance.user }}"
changed_when: true