https://github.com/sansible/mysql
https://github.com/sansible/mysql
ansible ansible-role ansible-roles mysql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sansible/mysql
- Owner: sansible
- License: mit
- Created: 2016-09-09T10:06:52.000Z (almost 10 years ago)
- Default Branch: develop
- Last Pushed: 2018-04-20T14:51:28.000Z (about 8 years ago)
- Last Synced: 2025-05-07T19:53:07.689Z (about 1 year ago)
- Topics: ansible, ansible-role, ansible-roles, mysql
- Language: Makefile
- Size: 16.6 KB
- Stars: 1
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mysql
Master: [](https://travis-ci.org/sansible/mysql)
Develop: [](https://travis-ci.org/sansible/mysql)
* [ansible.cfg](#ansible-cfg)
* [Installation and Dependencies](#installation-and-dependencies)
* [Tags](#tags)
* [Examples](#examples)
This roles installs the Mysql Server, the setup is very basic and is really only meant
local MySQL testing in VMs.
## ansible.cfg
This role is designed to work with merge "hash_behaviour". Make sure your
ansible.cfg contains these settings
```INI
[defaults]
hash_behaviour = merge
```
## Installation and Dependencies
To install run `ansible-galaxy install sansible.mysql` or add this to your
`roles.yml`.
```YAML
- name: sansible.mysql
version: v1.0
```
and run `ansible-galaxy install -p ./roles -r roles.yml`
## Tags
This role uses one tag: **build**
* `build` - Installs Mysql and all it's dependencies.
* `configure` - Configures mysql
## Settings
```YAML
mysql:
# Root user and pass should be stored using ansible-vault
root_user: root
root_password: P4ssword!
version: 5.5
```
## Examples
To install:
```YAML
- name: Install and configure Mysql Server
hosts: "somehost"
roles:
- role: sansible.mysql
```
Setup Mysql with root user and password:
```YAML
- name: Install and configure Mysql
hosts: "somehost"
roles:
- role: sansible.mysql
sansible_mysql_root_user: different_root_user
sansible_mysql_root_password: secure_password
```