From: Sébastien Han Date: Tue, 17 Apr 2018 12:16:41 +0000 (+0200) Subject: client: add a --rm option to run the container X-Git-Tag: v3.1.0beta8~16 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=90e47c5fb0c95f4b1a17cdf2a019bdcebc77a773;p=ceph-ansible.git client: add a --rm option to run the container 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 --- 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 \