Last active
June 7, 2018 17:56
-
-
Save wandersonwhcr/f80310dbc782e6c6c870801d3dac08e6 to your computer and use it in GitHub Desktop.
Ansible MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: key | |
apt_key: | |
keyserver: keyserver.ubuntu.com | |
id: 5072E1F5 | |
- name: repository | |
copy: | |
content: deb http://repo.mysql.com/apt/debian stretch mysql-5.7 mysql-tools | |
dest: /etc/apt/sources.list.d/mysql.list | |
- name: install | |
apt: | |
name: '{{ item }}' | |
update_cache: true | |
with_items: | |
- mysql-client | |
- mysql-server | |
- name: config | |
copy: | |
src: mysqld.cnf | |
dest: /etc/mysql/mysql.conf.d/mysqld.cnf | |
notify: 'mysql : reload' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 | |
bind-address = 0.0.0.0 | |
symbolic-links = 0 |
Author
wandersonwhcr
commented
Jun 7, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment