From 2cf5358d614fdca4954d354f69bbd28cd7992766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Wed, 11 Dec 2024 14:05:51 +0100 Subject: [PATCH] Refs #8140: MariaDB Server Deploy - Role WIP --- roles/services/tasks/mariadb.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/roles/services/tasks/mariadb.yml b/roles/services/tasks/mariadb.yml index 02ded8c..8b1bde2 100644 --- a/roles/services/tasks/mariadb.yml +++ b/roles/services/tasks/mariadb.yml @@ -3,7 +3,6 @@ name: mariadb-server state: present #install_recommends: no - - name: Ensure required directories exist file: path: "{{ item.path }}" @@ -18,7 +17,6 @@ - { path: /etc/systemd/system/mariadb.service.d, owner: root, group: root, mode: 'u=rwx,g=rx,o=rx' } - { path: /mnt/mysqltmp, owner: root, group: root, mode: 'u=rwx,g=rwx,o=rwxt' } - { path: /mnt/mysqlbin/binlog, owner: mysql, group: mysql, mode: 'u=rwx,g=,o=' } - - name: Set MariaDB custom configuration copy: src: "{{ item }}" @@ -29,7 +27,6 @@ with_fileglob: - "files/z9*.cnf" notify: restart-mariadb - - name: Set MariaDB custom root scripts copy: src: "{{ item }}" @@ -39,7 +36,6 @@ mode: u=rwx,g=rx,o=rx with_fileglob: - "files/scripts/*.sh" - - name: Ensure required files are copied to their destinations ansible.builtin.copy: src: "{{ item.src }}" @@ -53,7 +49,6 @@ - { src: 'files/scripts/mysqltuner.pl', dest: '/root/scripts/mysqltuner.pl', mode: 'u=rwx,g=rx,o=rx' } notify: - reload systemd - - name: Set MariaDB Cron to /etc/cron.d template: src: templates/cron_mariadb @@ -61,14 +56,12 @@ owner: root group: root mode: u=rw,g=r,o=r - - name: Add tmpfs in /etc/fstab blockinfile: path: /etc/fstab marker: "# {mark} ANSIBLE-MANAGED TMPFS ENTRY" block: | tmpfs /mnt/mysqltmp tmpfs rw,size=6144M 0 0 - - name: Insert MySQL certificates copy: content: "{{ item.content }}"