From d8b16f6e9af592b1750f286e969e7b2eaa36acda Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 5 Aug 2023 20:28:46 +0200 Subject: [PATCH] Nextcloud: Configure OIDC --- tasks/configuration.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index ec2214c..1ea3d6f 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -37,7 +37,6 @@ - 'php occ maintenance:update:htaccess' - 'php occ config:system:set default_language --value "de"' - 'php occ config:system:set default_phone_region --value "DE"' - - 'php occ config:system:set loglevel --value "1"' loop_control: loop_var: commands @@ -45,8 +44,7 @@ ansible.builtin.blockinfile: path: "{{ nextcloud_config_file }}" insertbefore: '^\);' - marker: "// {mark} ANSIBLE MANAGED BLOCK" - marker_begin: mailserver + marker: "// {mark} ANSIBLE MANAGED BLOCK Mailversand" block: |2 'mail_from_address' => '{{ instances.config.mail_from }}', 'mail_smtpmode' => 'smtp', @@ -60,8 +58,7 @@ ansible.builtin.blockinfile: path: "{{ nextcloud_config_file }}" insertbefore: '^\);' - marker: "// {mark} ANSIBLE MANAGED BLOCK" - marker_begin: filelocking + marker: "// {mark} ANSIBLE MANAGED BLOCK Filelocking" block: |2 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\Redis', @@ -86,10 +83,17 @@ ansible.builtin.blockinfile: path: "{{ nextcloud_config_file }}" insertbefore: '^\);' - marker: "// {mark} ANSIBLE MANAGED BLOCK" - marker_begin: logging + marker: "// {mark} ANSIBLE MANAGED BLOCK Logging" block: |2 'log_type' => 'file', 'loglevel' => 1, 'logdateformat' => 'F d, Y H:i:s', 'log_type_audit' => 'file', + +- name: "Configuration | Erstelle OIDC-Konfiguration | {{ instances.name }}" + ansible.builtin.blockinfile: + path: "{{ nextcloud_config_file }}" + insertbefore: '^\);' + marker: "// {mark} ANSIBLE MANGED BLOCK OIDC" + block: "{{ instances.config.oidc }}" + when: instances.config.oidc is defined