Thanks. I didn’t read through the verbose output. But I did see that error earlier on in my testing and tried that.
I did it again just now (ssh-keygen -f "/home/web/.ssh/known_hosts" -R gitlab.iteratemarketing.com
) but I’m getting the same result:
`TASK [deploy : Clone project files] ********************************************
System info:
Ansible 2.2.1.0; Darwin
Trellis at “Check Ansible version before Ansible validates task attributes”
MODULE FAILURE
Traceback (most recent call last):
File “/tmp/ansible_p2EVck/ansible_module_git.py”, line 1033, in
main()
File “/tmp/ansible_p2EVck/ansible_module_git.py”, line 920, in main
add_git_host_key(module, repo,
accept_hostkey=module.params[‘accept_hostkey’])
File
"/tmp/ansible_p2EVck/ansible_modlib.zip/ansible/module_utils/known_hosts.py",
line 56, in add_git_host_key
File
"/tmp/ansible_p2EVck/ansible_modlib.zip/ansible/module_utils/known_hosts.py",
line 193, in add_host_key
File
"/tmp/ansible_p2EVck/ansible_modlib.zip/ansible/module_utils/basic.py", line
2300, in append_to_file
IOError: [Errno 13] Permission denied: ‘/home/web/.ssh/known_hosts’
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IOError: [Errno 13] Permission denied: '/home/web/.ssh/known_hosts’
fatal: [staging.kangapestcontrol.com]: FAILED! => {“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”}
…ignoring
TASK [deploy : Failed connection to remote repo] *******************************
System info:
Ansible 2.2.1.0; Darwin
Trellis at “Check Ansible version before Ansible validates task attributes”
Git repo git@gitlab.iteratemarketing.com:iteratemarketing/kanga-pest-
control.git cannot be accessed. Please verify the repository exists and you
have SSH forwarding set up correctly.
More info:
https://roots.io/trellis/docs/deploys/#ssh-keys
https://roots.io/trellis/docs/ssh-keys/#cloning-remote-repo-using-ssh-
agent-forwarding
fatal: [staging.kangapestcontrol.com]: FAILED! => {“changed”: false, “failed”: true}
to retry, use: --limit @/Users/spencerhill/Sites/kangapestcontrol.com/trellis/deploy.retry
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=0
staging.kangapestcontrol.com : ok=5 changed=0 unreachable=0 failed=1
➜ trellis git:(master) ✗`