diff --git a/Justfile b/Justfile index e0a81c5..15b2a6c 100644 --- a/Justfile +++ b/Justfile @@ -4,16 +4,17 @@ opentofu_dir := "infra/" ansible_proton_pass_plugin_ref := "4bd0741c347646060ec59c73f8adf7ed8e706cf3" ansible_proton_pass_plugin_url := "https://raw.githubusercontent.com/protonpass/proton-pass-ansible-integration/" + ansible_proton_pass_plugin_ref + "/lookup_plugins/proton_pass.py" +init: tofu-init fetch-ansible-deps fetch-ansible-plugins up: tofu-apply ansible-run-playbook down: tofu-destroy tofu-init: tofu -chdir={{ opentofu_dir }} init -upgrade -tofu-apply: tofu-init +tofu-apply: tofu -chdir={{ opentofu_dir }} apply -auto-approve -tofu-destroy: tofu-init +tofu-destroy: tofu -chdir={{ opentofu_dir }} apply -auto-approve -destroy tofu-destroy-instances: @@ -33,6 +34,6 @@ clean: tofu-destroy fetch-ansible-deps: ansible-galaxy install --role-file ansible/requirements.yml --roles-path ansible/galaxy_roles -fetch-plugins: +fetch-ansible-plugins: mkdir -p ansible/lookup_plugins curl -fsSL -o ansible/lookup_plugins/proton_pass.py {{ ansible_proton_pass_plugin_url }}