From 90e47c5fb0c95f4b1a17cdf2a019bdcebc77a773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 17 Apr 2018 14:16:41 +0200 Subject: [PATCH] client: add a --rm option to run the container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the case where the playbook died and never removed the container. So now, once the container exits it will remove itself from the container list. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1568157 Signed-off-by: Sébastien Han --- roles/ceph-client/tasks/create_users_keys.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-client/tasks/create_users_keys.yml b/roles/ceph-client/tasks/create_users_keys.yml index 204ea7695..65dac47cb 100644 --- a/roles/ceph-client/tasks/create_users_keys.yml +++ b/roles/ceph-client/tasks/create_users_keys.yml @@ -15,6 +15,7 @@ - name: run a dummy container (sleep 300) from where we can create pool(s)/key(s) command: > docker run \ + --rm \ -d \ -v {{ ceph_conf_key_directory }}:{{ ceph_conf_key_directory }} \ --name ceph-create-keys \