Skip to content

Commit

Permalink
add file exist check
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli authored and rpelisse committed Nov 30, 2023
1 parent 5ed1334 commit f3c014e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/validate-downstream-collection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ ansibleGalaxyCollectionInstall "${path_to_collection_archive}"
echo ${PLAYBOOK}/${VALIDATION_PLAYBOOK}

ansible-playbook ${ANSIBLE_VERBOSITY_LEVEL} -i "${PATH_TO_INVENTORY_FILE}" $(loadJBossNetworkAPISecrets) "${PLAYBOOK}"
ansible-playbook ${ANSIBLE_VERBOSITY_LEVEL} -i "${PATH_TO_INVENTORY_FILE}" "${VALIDATION_PLAYBOOK}"
if [ -e "${VALIDATION_PLAYBOOK}" ]; then
ansible-playbook ${ANSIBLE_VERBOSITY_LEVEL} -i "${PATH_TO_INVENTORY_FILE}" "${VALIDATION_PLAYBOOK}"
fi

0 comments on commit f3c014e

Please sign in to comment.