#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 # check mode not supported for this task time ansible-playbook tasks-debian.yml -i ../hosts -e "target=$target"