https://github.com/clouddrove/ansible-role-mysql
This ansible role install mysql server for Debian.
https://github.com/clouddrove/ansible-role-mysql
ansible ansible-galaxy ansible-role aws clouddrove mysql mysql-database mysql-server
Last synced: 2 months ago
JSON representation
This ansible role install mysql server for Debian.
- Host: GitHub
- URL: https://github.com/clouddrove/ansible-role-mysql
- Owner: clouddrove
- License: mit
- Created: 2019-09-09T13:39:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T22:41:04.000Z (9 months ago)
- Last Synced: 2025-04-15T17:54:50.101Z (2 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, aws, clouddrove, mysql, mysql-database, mysql-server
- Language: Makefile
- Size: 12.7 KB
- Stars: 4
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role MySQL
This ansible role install mysql server for Debian.
We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.
Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results.
## Prerequisites
This module has a few dependencies:
- [Ansible2.8](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- [Python](https://www.python.org/downloads)## What Includes
Followiing things includes in this role:
- mysql-server
- python-selinux
- python-mysqldb## Example Playbook
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/ansible-role-mysql/releases).
```yaml
- hosts: localhost
remote_user: ubuntu
become: true
roles:
- clouddrove.ansible_role_mysql
```## Variables
```yaml
mysql_db:
- name: live-app
collation: utf8_general_ci
encoding: utf8mysql_users:
- name: app_user
pass: bSEs7K2v8Q5QvWuw
priv: "*.*:ALL"
host: "%"mysql_port: 3306
mysql_bind_address: "0.0.0.0"
mysql_root_db_pass: f9RRXh4r3JuxWbtZ3twWjjAVmBLtCPrb9v
key_buffer_size: 16M
max_allowed_packet: 16M
query_cache_limit: 1M
query_cache_size: 16M
mysql_sql_mode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
mysql_conf_dir: "/etc/mysql/"
mysql_user: mysql
mysql_group: mysql
```## Installation
```console
$ ansible-galaxy install clouddrove.ansible_role_mysql
```## Feedback
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/ansible-role-mysql/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-mysql)!
## About us
At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.
We are The Cloud Experts!
We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.
[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=