Improve certificates role testability
[oom/offline-installer.git] / ansible / run_playbook.sh
index 2edbe35..3bc56b3 100755 (executable)
@@ -103,7 +103,7 @@ if [ -n "$ANSIBLE_DOCKER_IMAGE" ] ; then
         -v "${HOME}"/.ssh:/root/.ssh:rw \
         -v "$ANSIBLE_DIR:/ansible:ro" \
         -v "$ANSIBLE_DIR/application:/ansible/application:rw" \
-        -v "$ANSIBLE_DIR/certs/:/certs:rw" \
+        -v "$ANSIBLE_DIR/certs/:/ansible/certs:rw" \
         -v "$ANSIBLE_DIR/log/:/ansible/log:rw" \
         -e ANSIBLE_LOG_PATH \
         -it "${ANSIBLE_DOCKER_IMAGE}" "$@"
@@ -129,7 +129,7 @@ fi
     --mount ro:"$ANSIBLE_DIR":/ansible \
     --mount rw:"$ANSIBLE_DIR"/application:/ansible/application \
     --mount rw:"$ANSIBLE_DIR"/log:/ansible/log \
-    --mount rw:"$ANSIBLE_DIR"/certs:/certs \
+    --mount rw:"$ANSIBLE_DIR"/certs:/ansible/certs \
     --mount ro:/etc/resolv.conf:/etc/resolv.conf \
     --mount ro:/etc/hosts:/etc/hosts \
     --workdir /ansible \