#!/bin/bash # Generate Ansible inventory using the aws-instance command if [[ $1 = "--host" ]]; then echo '{}' exit 0 fi aws-instance list --ansible