ansible-role-mariadb/tasks/configuration.yml

16 lines
440 B
YAML

---
- name: Configuration | Copy configuration file
ansible.builtin.template:
src: mariadb.conf.j2
dest: "/etc/mysql/mariadb.conf.d/90-{{ ansible_hostname }}.cnf"
mode: "0644"
notify: restart mariadb
- name: "Configuration | Copy systemd override"
ansible.builtin.copy:
src: systemd/override.conf
dest: /etc/systemd/systemd/mariadb.service.d/
mode: "0644"
notify:
- Reload systemd
- restart mariadb