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