16 lines
418 B
YAML
16 lines
418 B
YAML
---
|
|
- name: "Monit | Create sql user"
|
|
community.mysql.mysql_user:
|
|
name: "{{ monit_sql_user }}"
|
|
host: localhost
|
|
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
|