ansible-role-mariadb/tasks/monit.yml

15 lines
383 B
YAML

- name: "monit | Mysql-Nutzer anlegen"
mysql_user:
name: "{{ monit_sql_user }}"
host: "localhost"
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