2021-11-23 21:32:52 +01:00
|
|
|
- name: "monit | Mysql-Nutzer anlegen"
|
|
|
|
mysql_user:
|
|
|
|
name: "{{ monit_sql_user }}"
|
2022-06-09 13:19:17 +02:00
|
|
|
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 | Konfiguration kopieren"
|
|
|
|
template:
|
|
|
|
src: monit.j2
|
2022-06-09 10:57:02 +02:00
|
|
|
dest: /etc/monit/conf-enabled/mariadb
|
2021-11-23 21:32:52 +01:00
|
|
|
mode: 0600
|
|
|
|
notify: reload monit
|