2023-02-07 19:36:35 +01:00
|
|
|
---
|
|
|
|
- name: "Monit | Create sql user"
|
|
|
|
community.mysql.mysql_user:
|
2021-11-23 21:32:52 +01:00
|
|
|
name: "{{ monit_sql_user }}"
|
|
|
|
password: "{{ monit_sql_password }}"
|
|
|
|
state: present
|
|
|
|
login_unix_socket: "{{ mysql_socket }}"
|
|
|
|
login_user: root
|
|
|
|
|
2023-02-07 19:36:35 +01:00
|
|
|
- name: "Monit | Copy Monit configuration"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: monit.conf
|
2022-06-09 10:57:02 +02:00
|
|
|
dest: /etc/monit/conf-enabled/mariadb
|
2021-11-23 21:32:52 +01:00
|
|
|
mode: 0600
|
|
|
|
notify: reload monit
|