ansible-role-mariadb/tasks/monit.yml

17 lines
460 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 }}"
host: "{{ mariadb.bind_address | default('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