Guest User

Untitled

a guest
Jul 21st, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. $ ansible build-servers -a "ssh -T git@github.com" -u builder
  2. zaar | FAILED | rc=1 >>
  3. Hi yuchunc! You've successfully authenticated, but GitHub does not provide shell access.non-zero return code
  4.  
  5. $ ansible build-servers -a "git ls-remote --heads git@github.com:yuchunc/ZaZaar.git" -u builder
  6. zaar | SUCCESS | rc=0 >>
  7. def3ca999e9f77776dc74fe4c152497040a5f020 refs/heads/master
  8.  
  9. - name: Check out project from git
  10. git:
  11. repo: "{{ app_repo }}"
  12. dest: "{{ build_dir }}"
  13. version: "{{ app_version | default('HEAD') }}"
  14. force: yes
  15. accept_hostkey: yes
  16.  
  17. The full traceback is:
  18. File "/tmp/ansible_dDsiHl/ansible_module_git.py", line 435, in clone
  19. os.makedirs(dest_dirname)
  20. File "/usr/lib64/python2.7/os.py", line 157, in makedirs
  21. mkdir(name, mode)
  22.  
  23. fatal: [zaar]: FAILED! => {
  24. "changed": false,
  25. "cmd": "/bin/git clone --origin origin '' /home/builder/build/zazaar",
  26. "invocation": {
  27. "module_args": {
  28. "accept_hostkey": true,
  29. "archive": null,
  30. "bare": false,
  31. "clone": true,
  32. "depth": null,
  33. "dest": "/home/builder/build/zazaar",
  34. "executable": null,
  35. "force": true,
  36. "key_file": null,
  37. "recursive": true,
  38. "reference": null,
  39. "refspec": null,
  40. "remote": "origin",
  41. "repo": "git@github.com:yuchunc/ZaZaar.git",
  42. "ssh_opts": null,
  43. "track_submodules": false,
  44. "umask": null,
  45. "update": true,
  46. "verify_commit": false,
  47. "version": "HEAD"
  48. }
  49. },
  50. "msg": "Permission denied (publickey).rnfatal: Could not read from remote repository.nnPlease make sure you have the correct access rightsnand the repository exists.", "rc": 128,
  51. "stderr": "Permission denied (publickey).rnfatal: Could not read from remote repository.nnPlease make sure you have the correct access rightsnand the repository exists.n",
  52. "stderr_lines": [
  53. "Permission denied (publickey).",
  54. "fatal: Could not read from remote repository.",
  55. "",
  56. "Please make sure you have the correct access rights",
  57. "and the repository exists."
  58. ],
  59. "stdout": "Cloning into '/home/builder/build/zazaar'...n",
  60. "stdout_lines": [
  61. "Cloning into '/home/builder/build/zazaar'..."
  62. ]
  63. }
  64.  
  65. [defaults]
  66. remote_user = centos
  67. # system_errors = False
  68. host_key_checking = False
  69. inventory = inventory
  70. roles_path = roles.galaxy:roles
  71. # vault_password_file = vault.key
  72. # lookup_plugins = ./lookup_plugins/
  73. # filter_plugins = ./filter_plugins/
  74. library = library
  75. # timeout = 30
  76. ansible_managed = Ansible managed, any changes you make here will be overwritten
  77. retry_files_enabled = False
  78.  
  79. [ssh_connection]
  80. # This assumes that you have added your servers to a ~/.ssh/config file
  81. ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=15m -q
  82. # With larger teams, we normally put the hosts in a ssh.config in the project
  83. # which is the master definition of the hosts
  84. # ssh_args = -o ControlMaster=auto -o ControlPersist=15m -F ssh.config -q
  85. scp_if_ssh = True
  86. control_path = /tmp/mux-%%r@%%h:%%p
  87. pipelining = True
Add Comment
Please, Sign In to add comment