-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
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
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'] } |
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
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 |