Installs and configures mysql on a host.
- Linux
- none
- OSX
- Homebrew must be installed.
The default role variables in defaults/main.yml
are:
---
# defaults file for mysql
mysql_user_home: /root
mysql_root_username: root
mysql_root_password: root
mysql_port: "3306"
mysql_bind_address: '0.0.0.0'
mysql_slow_query_log_enabled: no
mysql_databases:
- name: example
collation: utf8_general_ci
encoding: utf8
mysql_users:
- name: example
host: 127.0.0.1
password: secret
priv: *.*:USAGE
none
See the examples directory.
To run this playbook with default settings, create a basic playbook like this:
- hosts: servers
roles:
- mysql
To install a specific version:
- hosts: servers
roles:
- { role: dgnest.mysql }
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Made with ❤️ ️☕️ and 🍕 by dgnest.
- [Luis Mayta][link-author]