#!/bin/bash [[ -z $1 ]] && echo target? && exit 1 target=$1 # conf depends on distro, do now show skipped hosts export ANSIBLE_DISPLAY_SKIPPED_HOSTS=false # check mode not supported for full-blown shell script time ansible-playbook tasks-env-postinstall.yml -i ../hosts -e "target=$target"