Skip to content

Commit

Permalink
Adding config file
Browse files Browse the repository at this point in the history
Issue #4 Setup ansible to properly connect after wrangling with it

The key thing to remember if credentials are failing is to check variable names -- ansible doesnt announce if something like 'ansible_ssh_user' is missing, and in this case it was simply misspelled.
  • Loading branch information
philkuz committed Aug 14, 2016
1 parent 9ab8cd0 commit 5b84d5e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[defaults]
gathering = smart
forks = 30
pipelining = True
host_key_checking = True
roles_path = ./shared_roles
become = True
ansible_managed = Ansible managed by docker deploy
ssh_args = -o ControlPersist=60s -q
retry_files_enabled=false
3 changes: 2 additions & 1 deletion docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---

- name: Install docker
hosts: servers
become: true
hosts: all
roles:
- { role: docker, tags: ['docker'] }
5 changes: 5 additions & 0 deletions inventory/vagrant
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[docker-host]
docker-server

[vagrant:children]
docker-host

[vagrant:vars]
ansible_ssh_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key

0 comments on commit 5b84d5e

Please sign in to comment.