Füge Monit Überwachung ein

This commit is contained in:
phil 2021-11-23 21:32:52 +01:00
parent 3ca97db324
commit 479d5cbe89

15
tasks/monit.yml Normal file
View file

@ -0,0 +1,15 @@
- name: "monit | Mysql-Nutzer anlegen"
mysql_user:
name: "{{ monit_sql_user }}"
host: "{{ ansible_default_ipv4.address }}"
password: "{{ monit_sql_password }}"
state: present
login_unix_socket: "{{ mysql_socket }}"
login_user: root
- name: "monit | Konfiguration kopieren"
template:
src: monit.j2
dest: /etc/monit/conf-enabled/mysql
mode: 0600
notify: reload monit