From 479d5cbe893566b537c4e0dde032024d4760a231 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 23 Nov 2021 21:32:52 +0100 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Monit=20=C3=9Cberwachung=20ein?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/monit.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tasks/monit.yml diff --git a/tasks/monit.yml b/tasks/monit.yml new file mode 100644 index 0000000..51e470e --- /dev/null +++ b/tasks/monit.yml @@ -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