Created
February 10, 2020 19:09
-
-
Save dohq/b7fe6f1164d0dd52ea689159dc042339 to your computer and use it in GitHub Desktop.
Example Ansible hosts.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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