diff --git a/tasks/nextcloud-install.yml b/tasks/nextcloud-install.yml index 4833719..997c980 100644 --- a/tasks/nextcloud-install.yml +++ b/tasks/nextcloud-install.yml @@ -69,12 +69,18 @@ creates: '{{ nextcloud_data_dir }}/.ht_nextcloud_trusted_domains_{{ item.id }}' with_items: '{{ nextcloud_servernames }}' - - name: Set the log file path + - name: Set the nextcloud log file path shell: cd {{ item.doc_root }} && php occ log:file --file {{ nextcloud_log_directory }}/nextcloud.log && touch {{ nextcloud_data_dir }}/.ht_nextcloud_logfile args: creates: '{{ nextcloud_data_dir }}/.ht_nextcloud_logfile' with_items: '{{ phpfpm_pools }}' + - name: Set the audit log file path + shell: cd {{ item.doc_root }} && php occ config:app:set admin_audit logfile --value={{ nextcloud_log_directory }}/audit.log && touch {{ nextcloud_data_dir }}/.ht_nextcloud_logfile + args: + creates: '{{ nextcloud_data_dir }}/.ht_nextcloud_auditfile' + with_items: '{{ phpfpm_pools }}' + - name: Set the log level shell: cd {{ item.doc_root }} && php occ log:manage --level {{ nextcloud_log_level }} && touch {{ nextcloud_data_dir }}/.ht_nextcloud_log_level args: