ansible-role-mariadb/tasks/monit.yml

16 lines
423 B
YAML
Raw Normal View History

2021-11-23 21:32:52 +01:00
- name: "monit | Mysql-Nutzer anlegen"
mysql_user:
name: "{{ monit_sql_user }}"
host: "{{ mariadb.bind_address|default('localhost') }}"
2021-11-23 21:32:52 +01:00
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/mariadb
2021-11-23 21:32:52 +01:00
mode: 0600
notify: reload monit