From 610d17b51da42c1c74cd74c5d483cfb6f8f80789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Mon, 27 Jan 2025 11:46:15 +0100 Subject: [PATCH] refs 8414-Refactor --- roles/services/tasks/mariadb.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/roles/services/tasks/mariadb.yml b/roles/services/tasks/mariadb.yml index 486d1c3..3513f54 100644 --- a/roles/services/tasks/mariadb.yml +++ b/roles/services/tasks/mariadb.yml @@ -117,26 +117,15 @@ - "files/mariaconfigfiles/z92-testing.cnf" notify: restart-mariadb - # - name: Set MariaBackup custom configuration Test - # template: - # src: "apply.config-test.sh" - # dest: /root/mariabackup/apply.config.sh - # owner: root - # group: root - # mode: u=rw,g=r,o=r - - name: Set MariaBackup custom template configuration Test template: - src: "{{ item }}" + src: test-db/apply.config.sh dest: /root/mariabackup/ owner: root group: root mode: u=rw,g=,o= - with_items: - - "test-db/apply.config.sh" - - "my.cnf" - - name: Set MariaDB local configuration file + - name: Set MariaDB local configuration file for test-db copy: src: files/mariabackuptest/apply.sql dest: /root/mariabackup/ @@ -153,8 +142,16 @@ - name: template: - src: templates/z99-local.cnf + src: z99-local.cnf dest: /etc/mysql/mariadb.conf.d/ owner: root group: root - mode: u=rw,g=r,o=r \ No newline at end of file + mode: u=rw,g=r,o=r + +- name: Set MariaBackup custom template configuration Test + template: + src: "my.cnf" + dest: /root/mariabackup/ + owner: root + group: root + mode: u=rw,g=,o=