Ensure galaxy dependencies are up-to-date during deploy

This commit is contained in:
Jake Howard 2024-09-09 16:53:22 +01:00
parent cdaa626068
commit b50840a2ee
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -5,9 +5,13 @@ export PATH := justfile_directory() + "/env/bin:" + env_var("PATH")
@default: @default:
just --list just --list
ansible-setup: ansible-setup: ansible-install ansible-galaxy-install
ansible-install:
python -m venv env python -m venv env
pip install -r ansible/dev-requirements.txt pip install -r ansible/dev-requirements.txt
ansible-galaxy-install: ansible-install
cd ansible/ && ansible-galaxy install -r galaxy-requirements.yml --force cd ansible/ && ansible-galaxy install -r galaxy-requirements.yml --force
@ansible-facts HOST: @ansible-facts HOST:
@ -30,7 +34,7 @@ update-secrets:
bw sync bw sync
cd terraform/ && bw get attachment .env --itemid c4f8b44e-ae62-442d-a9e0-02d0621c2454 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 }} cd ansible/ && ansible-playbook main.yml --vault-password-file=vault-pass.sh -K --diff {{ ARGS }}
ansible-vault ACTION *ARGS: ansible-vault ACTION *ARGS: