]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
client: add a --rm option to run the container
authorSébastien Han <seb@redhat.com>
Tue, 17 Apr 2018 12:16:41 +0000 (14:16 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 19 Apr 2018 12:59:37 +0000 (14:59 +0200)
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>
roles/ceph-client/tasks/create_users_keys.yml

index 204ea7695759ffc350a7e2df90ae8a6b1bac743a..65dac47cb0d3a4f040f36f30beb7769d27928c83 100644 (file)
@@ -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 \