ansible-role-mariadb-debian/tasks/replication_master.yml

13 lines
400 B
YAML

---
- name: Ensure replication user exists on master
mysql_user:
name: "{{ item.name }}"
host: "{{ item.host | default('%') }}"
password: "{{ item.password }}"
priv: "{{ item.priv | default('*.*:REPLICATION SLAVE') }}"
state: present
login_unix_socket: "{{ mariadb_unix_socket }}"
with_items: "{{ mariadb_replication_user }}"
when: not ansible_check_mode
no_log: true