Enable PostgreSQL database support
This commit is contained in:
parent
2a03876360
commit
86aef332ca
4 changed files with 55 additions and 18 deletions
|
@ -47,4 +47,16 @@
|
|||
become: true
|
||||
become_user: "{{ item.user }}"
|
||||
changed_when: true
|
||||
when: not nc_is_installed.stat.exists
|
||||
when: not nc_is_installed.stat.exists and item.database_type == "MariaDB"
|
||||
|
||||
- name: "Nextcloud | Führe Installation aus | {{ item.name }}"
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
php occ maintenance:install --database "pgsql"
|
||||
--database-name "{{ item.database }}" --database-user "{{ item.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: "{{ item.user }}"
|
||||
when: not nc_is_installed.stat.exists and item.database_type == "PostgreSQL"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue