mysqld - create /var/lib/prometheus dir

This commit is contained in:
Ludovic Cartier 2021-05-27 10:53:56 +02:00
parent 695100709b
commit db2eae4abf

View File

@ -42,6 +42,14 @@
enabled: yes enabled: yes
name: prometheus-mysqld-exporter.service name: prometheus-mysqld-exporter.service
- name: 'prometheus | mysqld exporter | create configuration directory'
file:
path: /var/lib/prometheus
state: directory
mode: '0755'
tags:
- prometheus
- name: 'prometheus | mysqld exporter | configuration' - name: 'prometheus | mysqld exporter | configuration'
copy: copy:
dest: '/var/lib/prometheus/.my.cnf' dest: '/var/lib/prometheus/.my.cnf'