ANSIBLE.MYSQL_REPLICATION(3)    ANSIBLE MODULES   ANSIBLE.MYSQL_REPLICATION(3)



NAME
       mysql_replication - Manage MySQL replication

DESCRIPTION
       Manages MySQL server replication, slave, master status get and change
       master host.

OPTIONS
       login_host
              mysql host to connect

       login_password
              password to connect mysql host, if defined login_user also
              needed.

       login_unix_socket
              unix socket to connect mysql server

       login_user
              username to connect mysql host, if defined login_password also
              needed.

       master_connect_retry
              same as mysql variable

       master_host
              same as mysql variable

       master_log_file
              same as mysql variable

       master_log_pos
              same as mysql variable

       master_password
              same as mysql variable

       master_port
              same as mysql variable

       master_ssl
              same as mysql variable

       master_ssl_ca
              same as mysql variable

       master_ssl_capath
              same as mysql variable

       master_ssl_cert
              same as mysql variable

       master_ssl_cipher
              same as mysql variable

       master_ssl_key
              same as mysql variable

       master_user
              same as mysql variable

       mode   module operating mode. Could be getslave (SHOW SLAVE STATUS),
              getmaster (SHOW MASTER STATUS), changemaster (CHANGE MASTER TO),
              startslave (START SLAVE), stopslave (STOP SLAVE) Choices:
              getslave,getmaster,changemaster,stopslave,startslave. (default:
              getslave)

       relay_log_file
              same as mysql variable

       relay_log_pos
              same as mysql variable.

EXAMPLES
       # Stop mysql slave thread
       - mysql_replication: mode=stopslave

       # Get master binlog file name and binlog position
       - mysql_replication: mode=getmaster

       # Change master to master server 192.168.1.1 and use binary log 'mysql-bin.000009' with position 4578
       - mysql_replication: mode=changemaster master_host=192.168.1.1 master_log_file=mysql-bin.000009 master_log_pos=4578



SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#mysql-replication



1.4.5                             2014-02-12      ANSIBLE.MYSQL_REPLICATION(3)
