diff --git a/tasks/main.yml b/tasks/main.yml index a30c443..a325180 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,9 +2,6 @@ - import_tasks: packages.yml tags: packages -- import_tasks: mariadb.yml - tags: mariadb - - name: "Munin" include_tasks: munin.yml when: "'munin' in ansible_facts.packages" diff --git a/tasks/mariadb.yml b/tasks/mariadb.yml deleted file mode 100644 index 3ca2b37..0000000 --- a/tasks/mariadb.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: "mariadb | Kopiere Serverkonfiguration" - template: - src: 90-sao.cnf.j2 - dest: /etc/mysql/mariadb.conf.d/90-sao.cnf - notify: restart mariadb diff --git a/templates/90-sao.cnf.j2 b/templates/90-sao.cnf.j2 deleted file mode 100644 index 5921860..0000000 --- a/templates/90-sao.cnf.j2 +++ /dev/null @@ -1,23 +0,0 @@ -# {{ ansible_managed }} - -[mysqld] -bind_address={{ mariadb.bind_address|default("127.0.0.1") }} - -{% if inventory_hostname == "database.sao" %} -open_files_limit = 64184 -{% endif %} - -# Slow-Log -slow_query_log = 1 -slow_query_log_file = /var/log/mysql/mariadb-slow.log -long_query_time = 10 -log_slow_rate_limit = 1000 -log_slow_verbosity = query_plan - -{% if inventory_hostname != "database.sao" %} -innodb_buffer_pool_size = {{ (ansible_memtotal_mb / 1024 * 0.8) | round (0, 'floor') | int }}G -innodb_log_file_size = 256M -innodb_log_buffer_size = 4M -innodb_buffer_pool_instances = 4 -performance_schema = on -{% endif %}