Ensure galaxy dependencies are up-to-date during deploy
This commit is contained in:
parent
cdaa626068
commit
b50840a2ee
1 changed files with 6 additions and 2 deletions
8
justfile
8
justfile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue