parent
9d4c84388d
commit
4bcd18c6d0
|
|
@ -16,7 +16,7 @@ The role use
|
||||||
and
|
and
|
||||||
[`mysql_db`](https://docs.ansible.com/ansible/latest/modules/mysql_db_module.html)
|
[`mysql_db`](https://docs.ansible.com/ansible/latest/modules/mysql_db_module.html)
|
||||||
ansible modules that depends on [PyMySQL](https://github.com/PyMySQL/PyMySQL) so
|
ansible modules that depends on [PyMySQL](https://github.com/PyMySQL/PyMySQL) so
|
||||||
the following Python 2.7 or Python 3.X versions are needed.
|
Python 2.7 or Python 3.X versions are needed.
|
||||||
|
|
||||||
For older Python versions, you may use
|
For older Python versions, you may use
|
||||||
[MySQLdb](http://mysql-python.sourceforge.net/MySQLdb.html) but then the role
|
[MySQLdb](http://mysql-python.sourceforge.net/MySQLdb.html) but then the role
|
||||||
|
|
@ -65,7 +65,7 @@ variables. This permits more flexibility and a very simple
|
||||||
[`templates/my.cnf.j2`](./templates/my.cnf.j2) file.
|
[`templates/my.cnf.j2`](./templates/my.cnf.j2) file.
|
||||||
|
|
||||||
By default, some common and standard options are deployed based on MariaDB
|
By default, some common and standard options are deployed based on MariaDB
|
||||||
Foundation package and it should be easy to change all of them (see
|
Foundation package and it should be easy to change them all (see
|
||||||
[`my.cnf`](./my.cnf)).
|
[`my.cnf`](./my.cnf)).
|
||||||
|
|
||||||
#### Basic settings
|
#### Basic settings
|
||||||
|
|
@ -150,7 +150,6 @@ mariadb_mysqldump_raw: |
|
||||||
### Databases management
|
### Databases management
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Databases.
|
|
||||||
mariadb_databases: []
|
mariadb_databases: []
|
||||||
# - name: db1
|
# - name: db1
|
||||||
# collation: utf8_general_ci
|
# collation: utf8_general_ci
|
||||||
|
|
@ -163,7 +162,6 @@ See: <https://docs.ansible.com/ansible/latest/modules/mysql_db_module.html>
|
||||||
### Users management
|
### Users management
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Users.
|
|
||||||
mariadb_users: []
|
mariadb_users: []
|
||||||
# - name: user
|
# - name: user
|
||||||
# host: 100.64.200.10
|
# host: 100.64.200.10
|
||||||
|
|
@ -220,7 +218,7 @@ mariadb_backup_db_name: []
|
||||||
# - db2
|
# - db2
|
||||||
```
|
```
|
||||||
|
|
||||||
Database dump is done serially and compression (`gzip`) is done at the end to
|
Database dump is done serially and compression step (`gzip`) is done after to
|
||||||
avoid too long locks.
|
avoid too long locks.
|
||||||
|
|
||||||
## Example playbook
|
## Example playbook
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue