From 708d9bc59e63439ef896e5c7ddcfd28e097e1cb6 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 7 Feb 2023 19:36:35 +0100 Subject: [PATCH] Fix lint warnings, Translate tasks names, Rename file --- tasks/monit.yml | 13 +++++++------ templates/{monit.j2 => monit.conf} | 0 2 files changed, 7 insertions(+), 6 deletions(-) rename templates/{monit.j2 => monit.conf} (100%) diff --git a/tasks/monit.yml b/tasks/monit.yml index 713cada..22a047d 100644 --- a/tasks/monit.yml +++ b/tasks/monit.yml @@ -1,15 +1,16 @@ -- name: "monit | Mysql-Nutzer anlegen" - mysql_user: +--- +- name: "Monit | Create sql user" + community.mysql.mysql_user: name: "{{ monit_sql_user }}" - host: "{{ mariadb.bind_address|default('localhost') }}" + host: "{{ mariadb.bind_address | default('localhost') }}" password: "{{ monit_sql_password }}" state: present login_unix_socket: "{{ mysql_socket }}" login_user: root -- name: "monit | Konfiguration kopieren" - template: - src: monit.j2 +- name: "Monit | Copy Monit configuration" + ansible.builtin.template: + src: monit.conf dest: /etc/monit/conf-enabled/mariadb mode: 0600 notify: reload monit diff --git a/templates/monit.j2 b/templates/monit.conf similarity index 100% rename from templates/monit.j2 rename to templates/monit.conf