#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 [[ $2 = apply ]] && check="" || check="--check" time ansible-playbook tasks-sshguard-install.yml --timeout 3 \ -i ../hosts -e "target=$target" $check