mysql/application: Added config for query cache

dehydrated
Felix Stupp 5 years ago
parent d6ec22e25d
commit 41a41c91fb
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,3 +1,5 @@
---
mysql_root_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/mysql/root length=80' ) }}"
mysql_query_cache_size: 256M

@ -67,3 +67,11 @@
innodb_file_per_table=ON
notify:
- restart mysql
- name: Configure query cache of mysql
template:
src: query_cache.cnf
dest: "/etc/mysql/conf.d/query_cache.cnf"
owner: root
group: root
mode: "u=rw,g=r,o=r"

@ -0,0 +1,4 @@
[mysqld]
query_cache_type=1
query_cache_size={{ mysql_query_cache_size }}
query_cache_limit=4M
Loading…
Cancel
Save