ansible-mysql/tasks/galera/main.yml

22 lines
569 B
YAML
Raw Normal View History

---
- name: APT | Install Galera
ansible.builtin.apt:
2024-08-27 16:24:51 +07:00
name: "{{ mariadb_galera_package_name }}"
- name: TEMPLATE | Deploy Galera configuration
ansible.builtin.template:
2024-08-27 16:24:51 +07:00
src: etc/mysql/mariadb.conf.d/60-galera.cnf.j2
dest: /etc/mysql/mariadb.conf.d/60-galera.cnf
mode: 0644
owner: root
group: root
2024-08-27 16:24:51 +07:00
notify: Restart mariadb
- name: INCLUDE | Bootstrap first node
ansible.builtin.import_tasks: 'bootstrap.yml'
2018-03-17 23:28:54 +07:00
when: inventory_hostname == mariadb_galera_primary_node
2024-08-27 16:24:51 +07:00
- name: META | Flush handlers
ansible.builtin.meta: flush_handlers