purge-docker-cluster: don't remove data on atomic

Because we don't manage the docker service on atomic (yet) via the
ceph-container-common role then we can't stop docker dans remove
the data.
For now let's do that only for non atomic hosts.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 638604929b)
pull/3999/head
Dimitri Savineau 2019-05-16 10:00:58 -04:00 committed by Dimitri Savineau
parent 1e2f8cd909
commit 023cdffd95
1 changed files with 8 additions and 2 deletions

View File

@ -714,8 +714,14 @@
- /etc/ceph
- /var/log/ceph
- name: remove data
shell: rm -rf /var/lib/ceph/* /var/lib/docker/*
- name: remove ceph data
shell: rm -rf /var/lib/ceph/*
# (todo): remove this when we are able to manage docker
# service on atomic host.
- name: remove docker data
shell: rm -rf /var/lib/docker/*
when: not is_atomic | bool
- name: purge fetch directory