Füge Monit Überwachung ein
This commit is contained in:
parent
3ca97db324
commit
479d5cbe89
1 changed files with 15 additions and 0 deletions
15
tasks/monit.yml
Normal file
15
tasks/monit.yml
Normal 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
|
Loading…
Reference in a new issue