#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 [[ $2 = apply ]] && check="" || check="--check" [[ ! -d $target/ ]] && echo could not find $target/ && exit 1 time ansible-playbook tasks-nftables.yaml --timeout 3 \ -i ../hosts -e "target=$target" $check