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