2015-08-11 15:22:58 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: FETCH | Get /etc/mysql/debian.cnf on master
|
2018-03-18 00:28:56 +07:00
|
|
|
fetch:
|
|
|
|
src: /etc/mysql/debian.cnf
|
|
|
|
dest: /tmp/{{ mariadb_slave_import_from }}/debian.cnf
|
|
|
|
flat: yes
|
2015-08-11 15:22:58 +07:00
|
|
|
changed_when: false
|
2018-03-17 23:28:54 +07:00
|
|
|
delegate_to: "{{ mariadb_slave_import_from }}"
|
2015-08-11 15:22:58 +07:00
|
|
|
|
|
|
|
- name: LOCAL_ACTION FILE | Secure fetched file
|
2019-04-16 18:55:38 +07:00
|
|
|
local_action:
|
|
|
|
module: file
|
|
|
|
path: "/tmp/{{ mariadb_slave_import_from }}/debian.cnf"
|
|
|
|
mode: 0600
|
2015-08-11 15:22:58 +07:00
|
|
|
become: no
|
|
|
|
|
|
|
|
- name: COPY | Fetched file to /etc/mysql/debian.cnf
|
2018-03-18 00:28:56 +07:00
|
|
|
copy:
|
|
|
|
src: "/tmp/{{ mariadb_slave_import_from }}/debian.cnf"
|
|
|
|
dest: /etc/mysql/debian.cnf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0600
|
2018-03-17 23:28:54 +07:00
|
|
|
notify: restart mariadb
|