Updates
This commit is contained in:
1
db/mysql/files/original-debian9/conf.d/mysql.cnf
Normal file
1
db/mysql/files/original-debian9/conf.d/mysql.cnf
Normal file
@@ -0,0 +1 @@
|
||||
[mysql]
|
||||
4
db/mysql/files/original-debian9/conf.d/mysqldump.cnf
Normal file
4
db/mysql/files/original-debian9/conf.d/mysqldump.cnf
Normal file
@@ -0,0 +1,4 @@
|
||||
[mysqldump]
|
||||
quick
|
||||
quote-names
|
||||
max_allowed_packet = 16M
|
||||
30
db/mysql/files/original-debian9/mysql.conf.d/mysqld.cnf
Normal file
30
db/mysql/files/original-debian9/mysql.conf.d/mysqld.cnf
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#
|
||||
# The MySQL Server configuration file.
|
||||
#
|
||||
# For explanations see
|
||||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||
|
||||
[mysqld]
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
datadir = /var/lib/mysql
|
||||
log-error = /var/log/mysql/error.log
|
||||
# By default we only accept connections from localhost
|
||||
bind-address = 127.0.0.1
|
||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||
symbolic-links=0
|
||||
10
db/mysql/tasks/install-debian.yml
Normal file
10
db/mysql/tasks/install-debian.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# Plain debian mysql-server (which could be a metapackage for mariadb)
|
||||
|
||||
- name: Installing MySQL
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- mysql-server
|
||||
- python-mysqldb # Required for ansible to createdb or createuser
|
||||
4
db/mysql/tasks/main.yml
Normal file
4
db/mysql/tasks/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
# Install Debian Default MySQL Server (could even be a meta package for mariadb)
|
||||
- include_tasks: install-debian.yml
|
||||
when: ansible_os_family == "Debian"
|
||||
Reference in New Issue
Block a user