Skip to content

Commit

Permalink
only run against config requirements.yml if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdecon committed Jan 18, 2022
1 parent 86725b0 commit e4991dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ if command -v ansible-galaxy &> /dev/null ; then
as_user ansible-galaxy role install -p "${roles_path}" --force -r "roles/requirements.yml" >/dev/null

# Install any user-defined config requirements
if [ -d "${CONFIG_DIR}" ]; then
if [ -d "${CONFIG_DIR}" ] && [ -f "${CONFIG_DIR}/requirement.yml" ] ; then
cd "${CONFIG_DIR}"
as_user ansible-galaxy collection install -p "${collections_path}" --force -i -r "requirements.yml" >/dev/null
as_user ansible-galaxy role install -p "${roles_path}" --force -i -r "requirements.yml" >/dev/null
Expand Down

0 comments on commit e4991dd

Please sign in to comment.