8343-New-machine-id #48

Merged
xavi merged 40 commits from 8343-New-machine-id into main 2025-01-10 13:29:15 +00:00
1 changed files with 0 additions and 7 deletions
Showing only changes of commit 2cf5358d61 - Show all commits

View File

@ -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 }}"