15 lines
398 B
YAML
15 lines
398 B
YAML
---
|
|
- name: "Monit | Create sql user"
|
|
community.mysql.mysql_user:
|
|
name: "{{ monit_sql_user }}"
|
|
password: "{{ monit_sql_password }}"
|
|
state: present
|
|
login_unix_socket: "{{ mysql_socket }}"
|
|
login_user: root
|
|
|
|
- name: "Monit | Copy Monit configuration"
|
|
ansible.builtin.template:
|
|
src: monit.conf
|
|
dest: /etc/monit/conf-enabled/mariadb
|
|
mode: 0600
|
|
notify: reload monit
|