Remove the task that stops the exporter.

This commit is contained in:
Andrea Dell'Amico 2022-03-07 17:02:40 +01:00
parent f3b048a8b2
commit 1fa3343662
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 0 additions and 10 deletions

View File

@ -68,13 +68,3 @@
when: mongodb_prometheus_exporter_enabled when: mongodb_prometheus_exporter_enabled
tags: [ 'mongodb', 'prometheus', 'mongodb_prometheus' ] tags: [ 'mongodb', 'prometheus', 'mongodb_prometheus' ]
- name: No mongodb exporter
block:
- name: Ensure that prometheus mongodb_exporter is stopped and disabled
ansible.builtin.service:
name: mongodb_exporter
state: stopped
enabled: no
when: not mongodb_prometheus_exporter_enabled
tags: [ 'mongodb', 'prometheus', 'mongodb_prometheus' ]