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

ansible fails when .bash_profile is not existing #63

Open
lazydays79 opened this issue Jan 3, 2022 · 1 comment
Open

ansible fails when .bash_profile is not existing #63

lazydays79 opened this issue Jan 3, 2022 · 1 comment

Comments

@lazydays79
Copy link

I'm using zsh and therefore I don't have a .bash_profile. :)

TASK [comcast.sdkman : Detect settings in /home/michael/.bash_profile] ***********************
fatal: [raspi]: FAILED! => {"changed": false, "cmd": ["grep", "sdkman-init.sh", "/home/michael/.bash_profile"], "delta": "0:00:00.015137", "end": "2022-01-03 12:42:22.057589", "msg": "non-zero return code", "rc": 2, "start": "2022-01-03 12:42:22.042452", "stderr": "grep: /home/michael/.bash_profile: No such file or directory", "stderr_lines": ["grep: /home/michael/.bash_profile: No such file or directory"], "stdout": "", "stdout_lines": []}
...ignoring
@lazydays79
Copy link
Author

lazydays79 commented Jan 3, 2022

It also fails when it exists but sdkman-init.sh couldn't be found (which is ok if you are'nt using bash at all).

TASK [comcast.sdkman : Detect settings in /home/michael/.bash_profile] ***********************
fatal: [raspi]: FAILED! => {"changed": false, "cmd": ["grep", "sdkman-init.sh", "/home/michael/.bash_profile"], "delta": "0:00:00.014666", "end": "2022-01-03 20:57:39.958810", "msg": "non-zero return code", "rc": 1, "start": "2022-01-03 20:57:39.944144", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
...ignoring

Same for .profile.

TASK [comcast.sdkman : Detect settings in /home/michael/.profile] ****************************
fatal: [raspi]: FAILED! => {"changed": false, "cmd": ["grep", "sdkman-init.sh", "/home/michael/.profile"], "delta": "0:00:00.014836", "end": "2022-01-03 20:57:41.602084", "msg": "non-zero return code", "rc": 1, "start": "2022-01-03 20:57:41.587248", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
...ignoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant