Fix lint warnings, Translates tasks names, Rename file

This commit is contained in:
phil 2023-02-07 19:39:16 +01:00
parent 708d9bc59e
commit 22aeda1d1f
2 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,6 @@
- name: "Munin: sql-Nutzer anlegen"
mysql_user:
---
- name: "Munin | Create sql user"
community.mysql.mysql_user:
name: "{{ munin_sql_user }}"
password: "{{ munin_sql_password }}"
priv: '*.*:PROCESS,REPLICATION CLIENT'
@ -7,16 +8,16 @@
login_unix_socket: "{{ mysql_socket }}"
login_user: root
- name: "Munin: Ersetze MariaDB-Zugangsdaten"
template:
src: templates/munin-mariadb.j2
- name: "Munin | Copy Munin configuration"
ansible.builtin.template:
src: templates/munin-mariadb.conf
dest: "{{ munin_sql_config_file }}"
mode: 0660
notify: restart munin-node
- name: "Munin: Aktiviere mysql-Plugin"
shell: munin-node-configure --shell | grep mysql_ | sh
- name: "Munin | Enable mysql plugin"
ansible.builtin.shell: munin-node-configure --shell | grep mysql_ | sh
args:
creates: "{{ munin_sql_config_file }}"
# Ausgabe von fehlerhaften Plugins (exit 1) ignorieren
ignore_errors: yes
ignore_errors: true
notify: restart munin-node