ansible-role-mariadb/tasks/monit.yml
2023-02-15 23:19:35 +01:00

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