Skip to content

Instantly share code, notes, and snippets.

@dohq
Created February 10, 2020 19:09
Show Gist options
  • Save dohq/b7fe6f1164d0dd52ea689159dc042339 to your computer and use it in GitHub Desktop.
Save dohq/b7fe6f1164d0dd52ea689159dc042339 to your computer and use it in GitHub Desktop.
Example Ansible hosts.yml
---
all:
children:
datanode:
hosts:
es1:
ansible_host: 192.168.33.31
ansible_ssh_private_key_file: ./.vagrant/machines/es1/libvirt/private_key
es2:
ansible_host: 192.168.33.32
ansible_ssh_private_key_file: ./.vagrant/machines/es2/libvirt/private_key
es3:
ansible_host: 192.168.33.33
ansible_ssh_private_key_file: ./.vagrant/machines/es3/libvirt/private_key
vars:
ansible_user: vagrant
ansible_ssh_args: '-o StrictHostKeyChecking no'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment