22 lines
589 B
YAML
22 lines
589 B
YAML
---
|
|
|
|
- name: FETCH | Get /etc/mysql/debian.cnf on master
|
|
fetch: >
|
|
src=/etc/mysql/debian.cnf
|
|
dest=/tmp/{{ mysql_slave_import_from }}/debian.cnf
|
|
flat=yes
|
|
changed_when: false
|
|
delegate_to: "{{ mysql_slave_import_from }}"
|
|
|
|
- name: LOCAL_ACTION FILE | Secure fetched file
|
|
local_action: file path=/tmp/{{ mysql_slave_import_from }}/debian.cnf mode=0600
|
|
become: no
|
|
|
|
- name: COPY | Fetched file to /etc/mysql/debian.cnf
|
|
copy: >
|
|
src=/tmp/{{ mysql_slave_import_from }}/debian.cnf
|
|
dest=/etc/mysql/debian.cnf
|
|
owner=root group=root mode=0600
|
|
notify: restart mysql
|
|
|