Update somie comments
parent
0b0e395072
commit
adf9e6074f
|
@ -1,9 +1,9 @@
|
|||
MySQL vendors for Debian Ansible role
|
||||
======================================
|
||||
MariaDB (MySQL) Ansible role for Debian
|
||||
=======================================
|
||||
|
||||
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-HanXHX.mysql-blue.svg)](https://galaxy.ansible.com/HanXHX/mysql) [![Build Status](https://travis-ci.org/HanXHX/ansible-mysql.svg?branch=master)](https://travis-ci.org/HanXHX/ansible-mysql)
|
||||
|
||||
Install and configure MySQL or MariaDB (Galera Cluster) or Percona Server. Manage replication (master/slave). Create users and databases.
|
||||
Install and configure MariaDB (Galera Cluster). Manage replication (master/slave). Create users and databases.
|
||||
|
||||
| OS | Vendor | Origin | Managed versions |
|
||||
| --------------- | ----------------------- | --------- | ------------------------- |
|
||||
|
@ -14,7 +14,6 @@ Install and configure MySQL or MariaDB (Galera Cluster) or Percona Server. Manag
|
|||
Notes
|
||||
-----
|
||||
|
||||
* MySQL server no longer exists on Debian Stretch
|
||||
* Galera Cluster is experimental
|
||||
* Due to Vagrant + Docker limitation (private network), replication/galera can't be checked with Travis
|
||||
* If you need to test this role with Vagrant, you must install hostmanager plugin: `vagrant plugin install vagrant-hostmanager`
|
||||
|
|
|
@ -14,10 +14,10 @@ mariadb_manage_logrotate: true
|
|||
# Configuration
|
||||
# -------------------------------------
|
||||
|
||||
# MySQL configuration template
|
||||
# MariaDB configuration template
|
||||
mariadb_config_template: 'etc/mysql/my.cnf.j2'
|
||||
|
||||
# MySQL connection settings.
|
||||
# MariaDB connection settings.
|
||||
mariadb_port: "3306"
|
||||
mariadb_bind_address: '127.0.0.1'
|
||||
mariadb_datadir: '/var/lib/mysql'
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
include: 'mariadb/upstream.yml'
|
||||
when: mariadb_origin == 'upstream'
|
||||
|
||||
- name: APT | Install few MySQL related tools
|
||||
- name: APT | Install few MariaDB related tools
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
install_recommends: no
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
mode: stopslave
|
||||
|
||||
- name: COMMAND | Migrate to MariaDB GTID
|
||||
command: mysql -e "CHANGE MASTER TO master_use_gtid=current_pos";
|
||||
command: mariadb -e "CHANGE MASTER TO master_use_gtid=current_pos";
|
||||
|
||||
- name: MYSQL_REPLICATION | Start slave
|
||||
mysql_replication:
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
mariadb_datadir: "{{ datadir.msg }}"
|
||||
mariadb_binlog_info: "{{ datadir.msg }}/xtrabackup_binlog_info"
|
||||
|
||||
- name: SERVICE | Stop MySQL before importing data
|
||||
- name: SERVICE | Stop MariaDB before importing data
|
||||
service:
|
||||
name: mysql
|
||||
state: stopped
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
register: ip
|
||||
changed_when: false
|
||||
- set_fact:
|
||||
# MySQL don't read /etc/hosts (from vagrant host plugin)
|
||||
# MariaDB don't read /etc/hosts (from vagrant host plugin)
|
||||
mariadb_replication_host: "{{ ip.stdout }}"
|
||||
# Need this to use vagrant 'delegate_to'
|
||||
mariadb_slave_import_from: "{{ ansible_hostname | replace ('slave', 'master') }}"
|
||||
|
|
Loading…
Reference in New Issue