mariadb: Enable query log
This commit is contained in:
parent
31c8b7aa6a
commit
5751c77b8f
2 changed files with 5 additions and 1 deletions
4
roles/mariadb/files/local.cnf
Normal file
4
roles/mariadb/files/local.cnf
Normal file
|
@ -0,0 +1,4 @@
|
|||
[mariadb]
|
||||
innodb_file_per_table = ON
|
||||
general_log
|
||||
general_log_file = /var/log/mariadb/mariadb-query.log
|
|
@ -64,7 +64,7 @@
|
|||
- name: Create local configuration
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/my.cnf.d/local.cnf
|
||||
content: "[mariadb]\ninnodb_file_per_table=ON\n"
|
||||
src: local.cnf
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue