2022-11-11 23:51:52 +01:00

17 lines
435 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- include_tasks: _common.yml
tags: ['prometheus_mysqld']
- name: 'mysqld exporter | configuration'
template:
src: conf/prometheus-mysqld-exporter.j2
dest: /etc/default/prometheus-mysqld-exporter
owner: root
group: root
mode: 0600
when:
- prometheus_mysqld_exporter_user is defined
register: prometheus_mysqld_exporter_configuration
notify:
- 'prometheus | mysqld exporter | restart service'