ansible-mysql/tasks/replication/slave/debiancnf.yml

23 lines
612 B
YAML
Raw Normal View History

---
- 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
changed_when: false
2018-03-17 23:28:54 +07:00
delegate_to: "{{ mariadb_slave_import_from }}"
- name: LOCAL_ACTION FILE | Secure fetched file
2018-03-17 23:28:54 +07:00
local_action: file path=/tmp/{{ mariadb_slave_import_from }}/debian.cnf mode=0600
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