ansible-role-mariadb/tasks/monit.yml

17 lines
418 B
YAML
Raw Normal View History

---
- name: "Monit | Create sql user"
community.mysql.mysql_user:
2021-11-23 21:32:52 +01:00
name: "{{ monit_sql_user }}"
2023-02-15 23:01:10 +01:00
host: localhost
2021-11-23 21:32:52 +01:00
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
2021-11-23 21:32:52 +01:00
mode: 0600
notify: reload monit