♻: move mariadb data
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m41s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m41s
This commit is contained in:
@@ -8,22 +8,6 @@
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Create mysql directory
|
||||
ansible.builtin.file:
|
||||
path: /srv/mysql
|
||||
owner: mysql
|
||||
group: mysql
|
||||
state: directory
|
||||
mode: "0o755"
|
||||
|
||||
- name: Populate mysql directory
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/bin/mysql_install_db --datadir=/srv/mysql
|
||||
creates: /srv/mysql/ibdata1
|
||||
become_user: mysql
|
||||
become: true
|
||||
notify: Restart mariadb
|
||||
|
||||
- name: Put mariadb configuration file
|
||||
ansible.builtin.template:
|
||||
src: 50-server.cnf.j2
|
||||
@@ -102,9 +86,7 @@
|
||||
src: files/override.conf
|
||||
dest: /etc/systemd/system/mariadb.service.d/override.conf
|
||||
mode: "0o644"
|
||||
notify:
|
||||
- Restart mariadb
|
||||
- Daemon-reload
|
||||
notify: Restart mariadb
|
||||
|
||||
- name: Install backup script
|
||||
ansible.builtin.copy:
|
||||
|
Reference in New Issue
Block a user