ansible-role-mariadb/tasks/monit.yml

16 lines
460 B
YAML

---
- name: "Monit | Create sql user"
community.mysql.mysql_user:
name: "{{ monit_sql_user }}"
host: "{{ mariadb.bind_address | default('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