Skip to content

Instantly share code, notes, and snippets.

@tdkn
Created June 20, 2018 11:20
Show Gist options
  • Save tdkn/0c845cc0310f2d2e70691470e9c2acd9 to your computer and use it in GitHub Desktop.
Save tdkn/0c845cc0310f2d2e70691470e9c2acd9 to your computer and use it in GitHub Desktop.
Ansible inventory for docker connection
[webservers]
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root
[mysqlservers]
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root
[queueservers]
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment