Enable PostgreSQL database support

This commit is contained in:
phil 2023-10-25 17:44:18 +02:00
parent 2a03876360
commit 86aef332ca
4 changed files with 55 additions and 18 deletions

View file

@ -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"