ansible-role-mariadb/tasks/configuration.yml
2024-01-21 01:21:13 +01:00

22 lines
632 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 | Creats systemd override directory"
ansible.builtin.file:
path: /etc/systemd/systemd/mariadb.service.d
state: directory
mode: "0755"
- name: "Configuration | Copy systemd override"
ansible.builtin.template:
src: systemd/override.conf.j2
dest: /etc/systemd/systemd/mariadb.service.d/override.conf
mode: "0644"
notify:
- Reload systemd
- restart mariadb