Skip to content

Commit

Permalink
Add test to make ansible tool target to check for existing install.
Browse files Browse the repository at this point in the history
  • Loading branch information
sensespidey committed Jul 19, 2022
1 parent ed3de3c commit d715f8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mk/tools/git/ansible.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ ansible_DEPENDENCIES = python3-minimal python3-paramiko python3-pip python3-yaml
ansible_BIN_DIR = bin
ansible_PARENT = ansible

ansible_installed = $(shell test -f "$(BIN_DIR)/ansible")

ansible: ansible.cfg $(BOOTSTRAP_D) $(BOOTSTRAP_D)/40_ansible.sh
ansible:
ifneq ($(ansible_installed),)
$(MAKE-QUIET) ansible-real
else
$(ECHO) "Ansible already installed."
endif

ansible-real: ansible.cfg $(BOOTSTRAP_D) $(BOOTSTRAP_D)/40_ansible.sh
ansible.cfg:
@echo "Deploying Ansible config file."
@cp $(FILES_DIR)/ansible/ansible.cfg $(PROJECT_ROOT)
Expand Down

0 comments on commit d715f8f

Please sign in to comment.