webhost-setup/run.zsh

14 lines
238 B
Bash
Executable File

#!/usr/bin/env zsh
local DIR="${0:a:h}"
local LIMIT="webhost"
if [[ -n "$1" ]]; then
LIMIT="$1"
fi
ansible-playbook \
--ask-vault-pass \
--inventory-file "$HOME/.config/ansible/hosts" \
--limit "$LIMIT" \
"$DIR/playbook.yaml"