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

git module key_file= option doesn't interpret the ~/ as $HOME #7533

Closed
greg-nagy opened this issue May 24, 2014 · 4 comments
Closed

git module key_file= option doesn't interpret the ~/ as $HOME #7533

greg-nagy opened this issue May 24, 2014 · 4 comments
Labels
bug This issue/PR relates to a bug.

Comments

@greg-nagy
Copy link

Issue Type:

Bug Report

Ansible Version:

ansible 1.6.2

Environment:

Ubuntu 12.04

Summary:

git module key_file= option doesn't interpret the ~/ as $HOME

Steps To Reproduce:
- git: repo=ssh://git@bitbucket.org/xxx/yyyy.git dest=~/compile key_file=~/.ssh/bitbucket_app -vvvv
Expected Results:

read the keyfile and checkout from git :)

Actual Results:
<localhost> REMOTE_MODULE git repo=ssh:********@bitbucket.org/xxx/yyy.git dest=~/compile key_file=~/.ssh/bitbucket_app
failed: [localhost] => {"cmd": "/usr/bin/git ls-remote origin -h refs/heads/master", "failed": true, "item": "", "rc": 128}
stderr: Warning: Identity file ~/.ssh/bitbucket_app not accessible: No such file or directory.
@greg-nagy greg-nagy changed the title git module key_file= option doesn't interpret ~/ ##### Issue Type: Bug Report ##### Ansible Version: ansible 1.6.2 ##### Environment: Ubuntu 12.04 ##### Summary: git module key_file= option doesn't interpret the ~/ as $HOME ##### Steps To Reproduce: - git: repo=ssh://git@bitbucket.org/xxx/yyyy.git dest=~/compile key_file=~/.ssh/bitbucket_app -vvvv ##### Expected Results: read the keyfile and checkout from git :) ##### Actual Results: <localhost> REMOTE_MODULE git repo=ssh:********@bitbucket.org/xxx/yyy.git dest=~/compile key_file=~/.ssh/bitbucket_app failed: [localhost] => {"cmd": "/usr/bin/git ls-remote origin -h refs/heads/master", "failed": true, "item": "", "rc": 128} stderr: Warning: Identity file ~/.ssh/bitbucket_app not accessible: No such file or directory. May 24, 2014
@greg-nagy greg-nagy changed the title ##### Issue Type: Bug Report ##### Ansible Version: ansible 1.6.2 ##### Environment: Ubuntu 12.04 ##### Summary: git module key_file= option doesn't interpret the ~/ as $HOME ##### Steps To Reproduce: - git: repo=ssh://git@bitbucket.org/xxx/yyyy.git dest=~/compile key_file=~/.ssh/bitbucket_app -vvvv ##### Expected Results: read the keyfile and checkout from git :) ##### Actual Results: <localhost> REMOTE_MODULE git repo=ssh:********@bitbucket.org/xxx/yyy.git dest=~/compile key_file=~/.ssh/bitbucket_app failed: [localhost] => {"cmd": "/usr/bin/git ls-remote origin -h refs/heads/master", "failed": true, "item": "", "rc": 128} stderr: Warning: Identity file ~/.ssh/bitbucket_app not accessible: No such file or directory. git module key_file= option doesn't interpret the ~/ as $HOME May 24, 2014
@mpdehaan
Copy link
Contributor

Should be easy to add a expanduser call here, something you'd like to work on, perhaps?

@greg-nagy
Copy link
Author

hm, why not, sounds fun.

how things go in this situation ? Do i have to hit a deadline or something ?
(I am a newbie)

thx btw: I was thinking about getting into python and you just gave the last push :)

@jimi-c
Copy link
Member

jimi-c commented May 27, 2014

No deadline, but sooner is always better :)

@mpdehaan
Copy link
Contributor

Hi!

Thanks very much for your interest in Ansible. It sincerely means a lot to us.

On September 26, 2014, due to enormous levels of contribution to the project Ansible decided to reorganize module repos, making it easier
for developers to work on the project and for us to more easily manage new contributions and tickets.

We split modules from the main project off into two repos, http://github.com/ansible/ansible-modules-core and http://github.com/ansible/ansible-modules-extras

If you would still like this ticket attended to, and believe this problem or idea is still present in the latest version of Ansible (1.7.2) or the development branch, we will need your help in having it reopened in one of the two new repos, and instructions are provided below.

We apologize that we are not able to make this transition happen seamlessly, though this is a one-time change and your help is greatly appreciated --
this will greatly improve velocity going forward.

Both sets of modules will ship with Ansible, though they'll receive slightly different ticket handling.

To locate where a module lives between 'core' and 'extras'

Additionally, should you need more help with this, you can ask questions on:

Thank you very much!

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants