Closed damianoneill closed 3 years ago
Full log attached.
Hi @all checking in to see if anyone has had a chance to look at this?
Hi @damianoneill. No, I haven't had a chance to look into this just yet, but I'm sorry you're having trouble with it. I may have some time to look into it this weekend.
Thanks, @elliotweiser that would be great.
After a series of OS upgrades and making adjustments to use Molecule v3, I'm finally at a point where I can test this again. I was able to successfully repro the issue. I'll see what I can find.
It looks like there is a mysterious new ~
directory which has been created just under the /
directory. This is distinct in my case from /root
, which is the $HOME
directory of the root
user. I suspect you may see something similar.
I was able to get this working by removing the explicit declaration of the sdkman_dir
(after tearing down my docker container and starting from scratch). This will default to picking up the ansible_user
's $HOME
directory, anyway, which is equivalent to ~
anyway. The presence of the existing /root/.sdkman
(or just $HOME/.sdkman
) with nothing underneath it seemed to interfere with subsequent attempts to re-install. If you'd rather not rely on the default value, you can set sdkman_dir
to the absolute path including /home/<your-username>/
. I hope this helps.
Thanks @elliotweiser confirming your suggestion worked. Thanks for your time on this.
Damian.
Hi, I am running the role on a host with a user (doneill-test) with no sudo privileges with
I'm executing the play as follows:
This fails on this task
Look at the verbose output, this is because sdkman doesn't install.
I have tried setting your variables sdkman_update: true, sdkman_auto_selfupdate: true but this makes no difference.
Before running the play ~/.sdkman does not exist, nor after the play executes.
In task TASK [comcast.sdkman : Check for SDKMAN installation] ~/.sdkman exists:false
I have also tried using a different directory name ~/.sdkman2 this fails the same way, with sdkman installer saying the .sdkman2 directory exists.
Any help would be much appreciated.
Thanks, Damian.