22 lines
671 B
YAML
22 lines
671 B
YAML
- name: "Munin: sql-Nutzer anlegen"
|
|
mysql_user:
|
|
name: "{{ munin_sql_user }}"
|
|
password: "{{ munin_sql_password }}"
|
|
priv: '*.*:PROCESS,REPLICATION CLIENT'
|
|
state: present
|
|
login_unix_socket: "{{ mysql_socket }}"
|
|
login_user: root
|
|
|
|
- name: "Munin: Ersetze MariaDB-Zugangsdaten"
|
|
template:
|
|
src: templates/munin-mariadb.j2
|
|
dest: "{{ munin_sql_config_file }}"
|
|
notify: restart munin-node
|
|
|
|
- name: "Munin: Aktiviere mysql-Plugin"
|
|
shell: munin-node-configure --shell | grep mysql_ | sh
|
|
args:
|
|
creates: "{{ munin_sql_config_file }}"
|
|
# Ausgabe von fehlerhaften Plugins (exit 1) ignorieren
|
|
ignore_errors: yes
|
|
notify: restart munin-node
|