Install and configure MySQL on Centos/Red Hat/Fedora with Ansible
-
Clone this repository inside your
roles
directory or add as submodule:git submodule add [email protected]:Vinelab/ansible-mysql roles/mysql
-
In your playbook:
roles:
- mysql
host
representsuser@[host]
bind
is for binding IP addresses allowing remote access to MySQL
vars:
mysql:
db: project-database
user: myuser
password: passwourld
privileges: '*.*:ALL'
host: '%'
bind:
- 0.0.0.0
you may also specify
app:
in a separate YAML file and include it invars_files