feat: justfile

main
Ricard Illa 2023-03-28 17:49:36 +02:00
parent d78d91e83f
commit 86e438b6b8
3 changed files with 12 additions and 9 deletions

7
deploy
View File

@ -1,7 +0,0 @@
#!/bin/sh
ansible-playbook \
--inventory hosts.yml \
--vault-password-file get_password.sh \
"$@" \
deploy.yml

View File

@ -9,10 +9,11 @@
in {
devShell = pkgs.mkShell {
nativeBuildInputs = [
pkgs.bashInteractive
pkgs.ansible
pkgs.ansible-lint
pkgs.ansible-doctor
pkgs.ansible-lint
pkgs.bashInteractive
pkgs.just
];
buildInputs = [ ];
};

9
justfile Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env -S just --justfile
deploy HOST *ARGS:
ansible-playbook \
--inventory hosts.yml \
--vault-password-file get_password.sh \
--limit {{HOST}} \
{{ARGS}} \
deploy.yml