Skip to content

Commit

Permalink
Add error handling for ansible-galaxy install
Browse files Browse the repository at this point in the history
  • Loading branch information
grdumas committed Dec 12, 2024
1 parent 1dab34c commit 39a53c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ done


# install AWS collection for ansible
ansible-galaxy collection install amazon.aws
ansible_collections=(amazon.aws)
for collection in "${ansible_collections[@]}"; do
ansible-galaxy collection install "$collection" || {
exit 1
}
done


echo "Before you can run Zathras:"
Expand Down

0 comments on commit 39a53c8

Please sign in to comment.