Implemented DB Credentials Update for Nextcloud and solved bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-14 18:41:30 +02:00
parent 30d583f0c9
commit d1c8036fa4
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
6 changed files with 13 additions and 6 deletions

View File

@ -35,14 +35,14 @@
dest: "{{docker_compose.directories.volumes}}nginx.conf"
notify: restart nextcloud nginx service
- name: Setup config.php
include_tasks: 01_config.yml
- name: Flush all handlers immediately so that occ can be used
meta: flush_handlers
- name: Setup config.php
include_tasks: config.yml
- name: Setup Nextcloud Plugins
include_tasks: plugin.yml
include_tasks: 02_plugin.yml
loop: "{{applications | get_app_conf(application_id, 'plugins', True) | dict2items }}"
loop_control:
loop_var: plugin_item
@ -51,7 +51,7 @@
plugin_value: "{{ plugin_item.value }}"
- name: Load system configuration
include_tasks: system.yml
include_tasks: 03_system.yml
- name: Add missing database indices in Nextcloud
command: >

View File

@ -0,0 +1,7 @@
<?php
return [
'dbhost' => '{{ database_host }}:{{ database_port }}',
'dbname' => '{{ database_name }}',
'dbuser' => '{{ database_username }}',
'dbpassword' => '{{ database_password }}',
];

View File

@ -164,7 +164,7 @@ plugin_configuration:
appid: "user_ldap"
configkey: "s01ldap_userlist_filter"
configvalue: |-
{% if applications | get_app_conf(application_id, 'plugins', True).user_ldap.user_directory.enabled %}
{% if applications | get_app_conf(application_id, 'plugins.user_ldap.user_directory.enabled', True) %}
{{ ldap.filters.users.all }}
{% else %}
()