From 4c30ee7ecca17b999b98c168e39c8d566843d28d Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Tue, 1 Jul 2025 21:03:24 +0200 Subject: [PATCH] Makefile should not be dependant of direnv or similar The Makefile needs to be able to use previous ansible installed commands. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e8b6703..b5a983b 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,16 @@ install: ## Install all necessary tools install-pip-packages: ## Install python3 requirements $(info --> Install requirements via `uv pip`) @( \ - source $(VENV_DIR)/bin/activate; \ - uv pip install -r requirements.txt; \ + source $(VENV_DIR)/bin/activate; \ + uv pip install -r requirements.txt; \ ) install-galaxy: ## Install galaxy requirements $(info --> Install galaxy requirements) - ansible-galaxy collection install -r requirements.yml --force -p $(VENDOR_DIR)/collections + @( \ + source $(VENV_DIR)/bin/activate; \ + ansible-galaxy collection install -r requirements.yml --force -p $(VENDOR_DIR)/collections; \ + ) install-pre-commit: ## Install pre-commit tool $(info --> Install pre-commit tool via `pip3`)