Nicolas G
2013-11-07 15:27:28 UTC
Hi,
I'm having the bellow problem trying to run ansible-pull mode cronjob. When
I bring up a new instance and install the cronjob, ansible-pull mode will
fail because Host key verification failure :
"""
Running: 'ansible all -i "localhost," -c local --limit
"localhost:ip-10-120-170-189.eu-west-1.compute.internal:127.0.0.1" -m git
-a "name=***@github.com:some-repo/project.git dest=/root/myprojec
version=myBranch"'
localhost | FAILED >> {
"cmd": "/usr/bin/git ls-remote ***@github.com:some-repo/project.git -h
refs/heads/myBranch",
"failed": true,
"msg": "Host key verification failed.\r\nfatal: The remote end hung up
unexpectedly",
"rc": 128,
"stderr": "Host key verification failed.\r\nfatal: The remote end hung
up unexpectedly\n",
"stdout": ""
}
"""
If I run the ansible--pull command manually the first time it asks me the
bellow :
"""
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is 15:27:ac:a5:76:18:2d:36:63:1b:54:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
"""
Once I accept "yes" it won't ask me again and ansible-pull cronjob will
work automatically with no issues.
How can I avoid the manual authentication so the cronjob will work the
first time automatically ??
Regards,
Nicolas.
I'm having the bellow problem trying to run ansible-pull mode cronjob. When
I bring up a new instance and install the cronjob, ansible-pull mode will
fail because Host key verification failure :
"""
Running: 'ansible all -i "localhost," -c local --limit
"localhost:ip-10-120-170-189.eu-west-1.compute.internal:127.0.0.1" -m git
-a "name=***@github.com:some-repo/project.git dest=/root/myprojec
version=myBranch"'
localhost | FAILED >> {
"cmd": "/usr/bin/git ls-remote ***@github.com:some-repo/project.git -h
refs/heads/myBranch",
"failed": true,
"msg": "Host key verification failed.\r\nfatal: The remote end hung up
unexpectedly",
"rc": 128,
"stderr": "Host key verification failed.\r\nfatal: The remote end hung
up unexpectedly\n",
"stdout": ""
}
"""
If I run the ansible--pull command manually the first time it asks me the
bellow :
"""
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is 15:27:ac:a5:76:18:2d:36:63:1b:54:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
"""
Once I accept "yes" it won't ask me again and ansible-pull cronjob will
work automatically with no issues.
How can I avoid the manual authentication so the cronjob will work the
first time automatically ??
Regards,
Nicolas.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.