Files
dotmesh-monitor/ansible/upgrade.sh
T

14 lines
324 B
Bash
Executable File

#!/usr/bin/env bash
# Wrapper for upgrade.yml.
# Usage: ./upgrade.sh [--reboot] [ansible-playbook args, e.g. --limit dm-edworth --ask-become-pass]
set -euo pipefail
cd "$(dirname "$0")"
EXTRA=()
if [[ "${1:-}" == "--reboot" ]]; then
EXTRA=(-e reboot=true)
shift
fi
exec ansible-playbook upgrade.yml "${EXTRA[@]}" "$@"