{"action":"created","issue":{"url":"https://api.github.com/repos/hashbangcode/vlad/issues/336","repository_url":"https://api.github.com/repos/hashbangcode/vlad","labels_url":"https://api.github.com/repos/hashbangcode/vlad/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/hashbangcode/vlad/issues/336/comments","events_url":"https://api.github.com/repos/hashbangcode/vlad/issues/336/events","html_url":"https://github.com/hashbangcode/vlad/issues/336","id":132982012,"number":336,"title":"SSH forwarding not working for custom role on VMware ","user":{"login":"richierampage","id":1949236,"avatar_url":"https://avatars.githubusercontent.com/u/1949236?v=3","gravatar_id":"","url":"https://api.github.com/users/richierampage","html_url":"https://github.com/richierampage","followers_url":"https://api.github.com/users/richierampage/followers","following_url":"https://api.github.com/users/richierampage/following{/other_user}","gists_url":"https://api.github.com/users/richierampage/gists{/gist_id}","starred_url":"https://api.github.com/users/richierampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richierampage/subscriptions","organizations_url":"https://api.github.com/users/richierampage/orgs","repos_url":"https://api.github.com/users/richierampage/repos","events_url":"https://api.github.com/users/richierampage/events{/privacy}","received_events_url":"https://api.github.com/users/richierampage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T14:04:30Z","updated_at":"2016-02-15T09:00:59Z","closed_at":null,"body":"Hi,\r\n\r\nI can't get ssh forwarding to work for a task within my custom role.\r\n\r\n`- command: git push -u origin --all`\r\n`  args:`\r\n`    chdir: /var/www/site/docroot`\r\n`    removes: \"/var/www/site/docroot/.git\"`\r\n`  register: dir`\r\n`- debug: var=dir.stdout_lines`\r\n\r\nThe push requires my host key which is forwarded. Works fine manually from the guest and other Ansible commands that don't require key work fine too.\r\n\r\nI suspect there is some ssh config/variable somewhere within vlad that is missing from the custom role or it's a vmware issue. Hoping there's an easy fix.\r\n\r\nAny help much appreciated!\r\n\r\nThanks\r\n\r\nRich"},"comment":{"url":"https://api.github.com/repos/hashbangcode/vlad/issues/comments/184121375","html_url":"https://github.com/hashbangcode/vlad/issues/336#issuecomment-184121375","issue_url":"https://api.github.com/repos/hashbangcode/vlad/issues/336","id":184121375,"user":{"login":"danbohea","id":6885065,"avatar_url":"https://avatars.githubusercontent.com/u/6885065?v=3","gravatar_id":"","url":"https://api.github.com/users/danbohea","html_url":"https://github.com/danbohea","followers_url":"https://api.github.com/users/danbohea/followers","following_url":"https://api.github.com/users/danbohea/following{/other_user}","gists_url":"https://api.github.com/users/danbohea/gists{/gist_id}","starred_url":"https://api.github.com/users/danbohea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbohea/subscriptions","organizations_url":"https://api.github.com/users/danbohea/orgs","repos_url":"https://api.github.com/users/danbohea/repos","events_url":"https://api.github.com/users/danbohea/events{/privacy}","received_events_url":"https://api.github.com/users/danbohea/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T09:00:59Z","updated_at":"2016-02-15T09:00:59Z","body":"Hi Rich. One way to test if your key has been successfully forwarded is to run the following command from the guest:\r\n\r\n```\r\nssh-add -L\r\n```\r\n\r\nIf successfully forwarded it should return the contents of the forwarded public key file. Hopefully that can help narrow down what's going on with your custom playbook."}}