#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 # check mode not supported as we are running a full-blown script time ansible-playbook tasks-time-install.yml -i ../hosts -e "target=$target"