diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 118b27d..77ce5cf 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -35,6 +35,7 @@ ansible.builtin.blockinfile: path: "{{ nextcloud_config_file }}" insertbefore: '^\);' + marker: "// {mark} ANSIBLE MANAGED BLOCK" marker_begin: mailserver block: |2 'mail_from_address' => '{{ nextcloud.mail_from }}', @@ -49,6 +50,7 @@ ansible.builtin.blockinfile: path: "{{ nextcloud_config_file }}" insertbefore: '^\);' + marker: "// {mark} ANSIBLE MANAGED BLOCK" marker_begin: filelocking block: |2 'filelocking.enabled' => true, @@ -67,3 +69,15 @@ changed_when: true with_indexed_items: - "{{ nextcloud.trusted_proxies }}" + +- name: "Configuration | Richte Logging ein | {{ instance.name }}" + ansible.builtin.blockinfile: + path: "{{ nextcloud_config_file }}" + insertbefore: '^\);' + marker: "// {mark} ANSIBLE MANAGED BLOCK" + marker_begin: logging + block: |2 + 'log_type' => 'file', + 'loglevel' => 1, + 'logdateformat' => 'F d, Y H:i:s', + 'log_type_audit' => 'file',