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 <seb@redhat.com>
pull/2537/head
Sébastien Han 2018-04-17 14:16:41 +02:00
parent 6c742376fd
commit 90e47c5fb0
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@
- name: run a dummy container (sleep 300) from where we can create pool(s)/key(s) - name: run a dummy container (sleep 300) from where we can create pool(s)/key(s)
command: > command: >
docker run \ docker run \
--rm \
-d \ -d \
-v {{ ceph_conf_key_directory }}:{{ ceph_conf_key_directory }} \ -v {{ ceph_conf_key_directory }}:{{ ceph_conf_key_directory }} \
--name ceph-create-keys \ --name ceph-create-keys \