Nextcloud: Configure OIDC

This commit is contained in:
phil 2023-08-05 20:28:46 +02:00
parent 9b010d9121
commit d8b16f6e9a

View file

@ -37,7 +37,6 @@
- 'php occ maintenance:update:htaccess' - 'php occ maintenance:update:htaccess'
- 'php occ config:system:set default_language --value "de"' - 'php occ config:system:set default_language --value "de"'
- 'php occ config:system:set default_phone_region --value "DE"' - 'php occ config:system:set default_phone_region --value "DE"'
- 'php occ config:system:set loglevel --value "1"'
loop_control: loop_control:
loop_var: commands loop_var: commands
@ -45,8 +44,7 @@
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "{{ nextcloud_config_file }}" path: "{{ nextcloud_config_file }}"
insertbefore: '^\);' insertbefore: '^\);'
marker: "// {mark} ANSIBLE MANAGED BLOCK" marker: "// {mark} ANSIBLE MANAGED BLOCK Mailversand"
marker_begin: mailserver
block: |2 block: |2
'mail_from_address' => '{{ instances.config.mail_from }}', 'mail_from_address' => '{{ instances.config.mail_from }}',
'mail_smtpmode' => 'smtp', 'mail_smtpmode' => 'smtp',
@ -60,8 +58,7 @@
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "{{ nextcloud_config_file }}" path: "{{ nextcloud_config_file }}"
insertbefore: '^\);' insertbefore: '^\);'
marker: "// {mark} ANSIBLE MANAGED BLOCK" marker: "// {mark} ANSIBLE MANAGED BLOCK Filelocking"
marker_begin: filelocking
block: |2 block: |2
'filelocking.enabled' => true, 'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis',
@ -86,10 +83,17 @@
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "{{ nextcloud_config_file }}" path: "{{ nextcloud_config_file }}"
insertbefore: '^\);' insertbefore: '^\);'
marker: "// {mark} ANSIBLE MANAGED BLOCK" marker: "// {mark} ANSIBLE MANAGED BLOCK Logging"
marker_begin: logging
block: |2 block: |2
'log_type' => 'file', 'log_type' => 'file',
'loglevel' => 1, 'loglevel' => 1,
'logdateformat' => 'F d, Y H:i:s', 'logdateformat' => 'F d, Y H:i:s',
'log_type_audit' => 'file', '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