From 69180761c8111e3a27cdaccfb5ff0e4a3b7721c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Tue, 10 Dec 2024 15:47:01 +0100 Subject: [PATCH] Refs #8140: MariaDB Server Deploy - Role WIP --- roles/services/tasks/mariadb.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/services/tasks/mariadb.yml b/roles/services/tasks/mariadb.yml index 4effaf6..88f2d1f 100644 --- a/roles/services/tasks/mariadb.yml +++ b/roles/services/tasks/mariadb.yml @@ -19,7 +19,7 @@ state: directory owner: root group: root - mode: '0755' + mode: u=rwx,g=rx,o=rx - name: Set MariaDB custom service.d override.conf copy: src: mariadb_override.conf @@ -34,7 +34,7 @@ state: directory owner: root group: root - mode: '0755' + mode: u=rwx,g=rx,o=rx - name: Set MariaDB custom root scripts copy: src: "{{ item }}" @@ -61,6 +61,14 @@ group: root mode: u=rwx,g=rx,o=rx notify: restart-mariadb +- name: Ensure log directory exists /var/log/mysql + file: + path: /var/log/mysql + state: directory + owner: mysql + group: adm + mode: u=rwx,g=rxs,o= + notify: restart-mariadb - name: Set MariaDB Cron to /etc/cron.d template: src: templates/cron_mariadb