Mount openshift-ansible working dir with 'z' option

On RHEL8, deployment fails with a bunch of permission issue while the
openshift-ansible container image tries to read files from /var/lib/mistral/openshift/openshift/inventory/.

We need to add 'z' option while mounting the
/var/lib/mistral/openshift volume.

Change-Id: I24067f97eb36e475f873e3a3ea06a488fef95d90
Closes-Bug: #1821437
This commit is contained in:
Martin André 2019-03-23 08:28:44 +01:00
parent 2852b3064a
commit e732fff8fd

View File

@ -90,7 +90,7 @@ if [ -z $OPENSHIFT_ANSIBLE_DIR ]; then
sudo podman run \
--net=host \
-u `id -u` \
-v ${CONFIG_DOWNLOAD_DIR}:${CONFIG_DOWNLOAD_DIR} \
-v ${CONFIG_DOWNLOAD_DIR}:${CONFIG_DOWNLOAD_DIR}:z \
-w ${CONFIG_DOWNLOAD_DIR} \
-e ANSIBLE_HOST_KEY_CHECKING=False \
-e ANSIBLE_CONFIG=${CONFIG_DOWNLOAD_DIR}/ansible.cfg \