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'