From db2eae4abfd678ae46bdeeab048d37c8f15164fe Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 27 May 2021 10:53:56 +0200 Subject: [PATCH] mysqld - create /var/lib/prometheus dir --- tasks/mysqld_exporter.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/mysqld_exporter.yml b/tasks/mysqld_exporter.yml index 79a1080..56f0bf3 100644 --- a/tasks/mysqld_exporter.yml +++ b/tasks/mysqld_exporter.yml @@ -42,6 +42,14 @@ enabled: yes 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' copy: dest: '/var/lib/prometheus/.my.cnf'