]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Extend purge.yml
authorBoris Ranto <branto@redhat.com>
Thu, 19 Apr 2018 21:15:30 +0000 (23:15 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 19 Apr 2018 21:48:23 +0000 (23:48 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
ansible/purge.yml

index be6a489bb246967cdf76e3dff2aaf67448061b23..3c5b7ee1ae9d0b6c39badb496806475bffee1da4 100644 (file)
@@ -24,6 +24,7 @@
       - python-carbon
       - grafana
       - cephmetrics
+      - prometheus
 
   - name: Remove files
     file:
       - /tmp/dashUpdater.py
       - /tmp/dashboards
 
-- name: purge collectd hosts
+  - name: Remove containers
+    docker_container:
+      name: "{{ item }}"
+      state: absent
+    with_items:
+      - grafana-server
+      - prometheus
+
+- name: purge all the hosts
   hosts:
     # These are roles used by ceph-ansible
     - mons
@@ -74,6 +83,7 @@
     with_items:
       - cephmetrics-collectors
       - collectd
+      - prometheus-node_exporter
 
   - name: Remove files
     file:
@@ -88,3 +98,4 @@
       - /etc/collectd.conf
       - /etc/yum.repos.d/cephmetrics.repo
       - /usr/lib64/collectd
+      - /usr/local/sbin/node_exporter