Skip to content

Commit

Permalink
ci: check if file exists as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Feb 16, 2024
1 parent 993ca51 commit 6c19aec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Ansible.common
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ $(ROLES_PATH) $(COLLECTIONS_PATH):
.SHELLFLAGS = -e
ansible/dependencies: $(ROLES_PATH) $(COLLECTIONS_PATH)
ifdef CROWDSTRIKE_ROLE_PULL_KEY
eval $$(ssh-agent -s) && ssh-add $(CROWDSTRIKE_ROLE_PULL_KEY)
ifeq (,$(wildcard $(CROWDSTRIKE_ROLE_PULL_KEY)))
eval $$(ssh-agent -s)
ssh-add $(CROWDSTRIKE_ROLE_PULL_KEY)
endif
endif
ansible-galaxy role install -r $(REQUIREMENTS_FILE) -p $(ROLES_PATH)
ansible-galaxy collection install -r $(REQUIREMENTS_FILE) -p $(COLLECTIONS_PATH)
Expand Down

0 comments on commit 6c19aec

Please sign in to comment.