ansible-role-mariadb/tasks/monit.yml

16 lines
398 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 }}"
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