Closed ice-8 closed 6 years ago
and here is a diff:
diff --git a/tasks/update-code/git.yml b/tasks/update-code/git.yml
index 55c0fb1..21988a7 100644
--- a/tasks/update-code/git.yml
+++ b/tasks/update-code/git.yml
@@ -20,6 +20,7 @@
dest: "{{ ansistrano_deploy_to }}/repo"
version: "{{ ansistrano_git_branch }}"
accept_hostkey: true
+ ssh_opts: "-o StrictHostKeyChecking=no"
update: yes
force: yes
refspec: "{{ ansistrano_git_refspec | default(omit) }}"
@@ -32,6 +33,7 @@
dest: "{{ ansistrano_deploy_to }}/repo"
version: "{{ ansistrano_git_branch }}"
accept_hostkey: true
+ ssh_opts: "-o StrictHostKeyChecking=no"
update: yes
force: yes
refspec: "{{ ansistrano_git_refspec | default(omit) }}"
Cool, will add this variable as optional
It will be empty (and omitted) by default as making this a default would break security but you will be able to supply such options if you decide to ignore man in the middle warnings
Solved in #271
hi.
in the
tasks/update-code/git.yml
used ansible modulegit
with optinonand as you can get in docs - http://docs.ansible.com/ansible/latest/git_module.html you should set
also in this case. Could you please add this option in
tasks/update-code/git.yml
?Otherwise in some cases you can get an error with git host ssh key.
For instance, i got in case when accepted host ssh key was rsa (which looks took by ssh-keyscan from option accept_hostkey: true), but key got by git clone was ecdsa-sha2-nistp256, and role failed with error
which have been resolved by add
to task for git
thank you