-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: set up ansible on separate script
- Loading branch information
1 parent
1aa1e19
commit e74bfb8
Showing
3 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# Setting up SSH for pulling private roles | ||
echo "Setting up SSH for pulling private roles" | ||
|
||
eval "$(ssh-agent -s)" | ||
|
||
if ssh-add "$CROWDSTRIKE_ROLE_PULL_KEY"; then | ||
echo "Added SSH key at ${CROWDSTRIKE_ROLE_PULL_KEY}" | ||
else | ||
echo "No additional ssh identities added" | ||
fi | ||
|
||
echo "Setting up Ansible environment" | ||
ansible-galaxy role install -r "${REQUIREMENTS_FILE}" -p "${ROLES_PATH}" | ||
ansible-galaxy collection install -r "${REQUIREMENTS_FILE}" -p "${COLLECTIONS_PATH}" |