#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 if [[ ! $2 = force ]]; then ansible-playbook setup.yml -i hosts -e target=$target --diff --check echo ready? read -r fi ansible-playbook setup.yml -i hosts -e target=$target --diff