#!/bin/bash cd "$(dirname "$0")" if [[ -n "$1" ]]; then ansible-playbook -v --ask-vault-pass site.yml --tags "$1" else ansible-playbook -v --ask-vault-pass site.yml fi