Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansistrano_git_repo always empty #83

Closed
glaszig opened this issue Jan 2, 2016 · 1 comment

Comments

@glaszig
Copy link

commented Jan 2, 2016

the repo paramter to the git command is empty although this role sets a default. setting a custom value in the vars: section does not help. anybody else experiencing this?

- hosts: web
  vars:
    ansistrano_deploy_via: git
  roles:
    - carlosbuenosvinos.ansistrano-deploy
<127.0.0.1> REMOTE_MODULE git version=master dest=/var/www/my-app/repo repo=

failed: [web01] => {"cmd": "/usr/bin/git ls-remote '' -h refs/heads/master", "failed": true, "rc": 128}
stderr: ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

msg: ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

FATAL: all hosts have already failed -- aborting

i would expect this

failed: [web01] => {"cmd": "/usr/bin/git ls-remote 'git@github.com:USERNAME/REPO.git' -h refs/heads/master", "failed": true, "rc": 128}
stderr: ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

@glaszig glaszig changed the title `ansistrano_git_repo` always empty ansistrano_git_repo always empty Jan 2, 2016

@glaszig

This comment has been minimized.

Copy link
Author

commented Jan 3, 2016

whoa. the git module appears to expect a url with a protocol at the repo argument. so, something like git@github.com/foo/bar.git won't suffice. it misses the protocol: ssh://git@github.com/foo/bar.

- hosts: web
  vars:
    ansistrano_deploy_via: git
    ansistrano_git_repo: "ssh://git@github.com/foo/bar"
  roles:
    - carlosbuenosvinos.ansistrano-deploy

@glaszig glaszig closed this Jan 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.