[all] {% for item in hosts %} {{ item.key }} ansible_host={{ item.value }} {% endfor %} [all:vars] ansible_ssh_private_key_file="~/.ssh/{{ keypair.name }}" ansible_ssh_common_args='-o StrictHostKeyChecking=no'