From b50840a2eef4164307951832f5b9c1682d25caa3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 9 Sep 2024 16:53:22 +0100 Subject: [PATCH] Ensure galaxy dependencies are up-to-date during deploy --- justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index e9969ab..712c15a 100644 --- a/justfile +++ b/justfile @@ -5,9 +5,13 @@ export PATH := justfile_directory() + "/env/bin:" + env_var("PATH") @default: just --list -ansible-setup: +ansible-setup: ansible-install ansible-galaxy-install + +ansible-install: python -m venv env pip install -r ansible/dev-requirements.txt + +ansible-galaxy-install: ansible-install cd ansible/ && ansible-galaxy install -r galaxy-requirements.yml --force @ansible-facts HOST: @@ -30,7 +34,7 @@ update-secrets: bw sync cd terraform/ && bw get attachment .env --itemid c4f8b44e-ae62-442d-a9e0-02d0621c2454 -ansible-deploy *ARGS: +ansible-deploy *ARGS: ansible-galaxy-install cd ansible/ && ansible-playbook main.yml --vault-password-file=vault-pass.sh -K --diff {{ ARGS }} ansible-vault ACTION *ARGS: