diff --git a/roles/prometheus/tasks/configure.yml b/roles/prometheus/tasks/configure.yml index d166ac9fd..a2f949df0 100644 --- a/roles/prometheus/tasks/configure.yml +++ b/roles/prometheus/tasks/configure.yml @@ -171,3 +171,8 @@ - prometheus_configure notify: - reload prometheus + +- name: Remove "scrapes" folder replaced by "scrape_configs" + ansible.builtin.file: + path: "{{ prometheus_config_dir }}/scrapes" + state: absent