diff --git a/ansible/molecule/molecule-downstream.sh b/ansible/molecule/molecule-downstream.sh index 49d7a3f..8a18804 100755 --- a/ansible/molecule/molecule-downstream.sh +++ b/ansible/molecule/molecule-downstream.sh @@ -36,7 +36,4 @@ else exit 4 fi -# shellcheck disable=SC2155 -readonly EXTRA_ARGS="$(loadJBossNetworkAPISecrets)" -export EXTRA_ARGS "${HARMONIA_HOME}/ansible/molecule/molecule.sh" diff --git a/ansible/molecule/molecule.sh b/ansible/molecule/molecule.sh index cd353ec..38c32cb 100755 --- a/ansible/molecule/molecule.sh +++ b/ansible/molecule/molecule.sh @@ -14,6 +14,8 @@ installPythonRequirementsIfAny configureAnsible + + ansibleGalaxyCollectionFromAllRequirementsFile molecule --version @@ -29,6 +31,10 @@ do fi done +# shellcheck disable=SC2155 +readonly EXTRA_ARGS="$(loadJBossNetworkAPISecrets)" +export EXTRA_ARGS + printEnv echo "Running Molecule test on project: ${JOB_NAME}..." set +u