diff --git a/ansible/playbooks/roles/node_exporter/tasks/install-node-exporter-as-system-service.yml b/ansible/playbooks/roles/node_exporter/tasks/install-node-exporter-as-system-service.yml index 96f4ecbfc3..5f601bb943 100644 --- a/ansible/playbooks/roles/node_exporter/tasks/install-node-exporter-as-system-service.yml +++ b/ansible/playbooks/roles/node_exporter/tasks/install-node-exporter-as-system-service.yml @@ -25,7 +25,7 @@ vars: file_name: "{{ exporter_file_name }}" -- name: Create /opt/node_exporter directories +- name: Create node_exporter and textfile_collector directories file: path: "{{ item }}" recurse: true @@ -35,6 +35,7 @@ state: directory with_items: - /opt/node_exporter + - /var/lib/prometheus/node-exporter/textfile_collector - name: Unpack node_exporter binary unarchive: