--- all: hosts: localhost: children: servers: vars: ansible_ssh_user: vagrant hosts: vm1: ansible_host: 192.168.56.2 ansible_ssh_private_key_file: .vagrant/machines/vm1/virtualbox/private_key vm2: ansible_host: 192.168.56.3 ansible_ssh_private_key_file: .vagrant/machines/vm2/virtualbox/private_key vm3: ansible_host: 192.168.56.4 ansible_ssh_private_key_file: .vagrant/machines/vm3/virtualbox/private_key vm4: ansible_host: 192.168.56.5 ansible_ssh_private_key_file: .vagrant/machines/vm4/virtualbox/private_key