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

TASK [dockpack.base_cmake : ensure current symlink exists] fails #20

Open
pjattke opened this issue Jun 13, 2022 · 0 comments
Open

TASK [dockpack.base_cmake : ensure current symlink exists] fails #20

pjattke opened this issue Jun 13, 2022 · 0 comments

Comments

@pjattke
Copy link

pjattke commented Jun 13, 2022

The task "ensure current symlink exists" fails under 5.4.196-0504196-generic because of wrong capitalization of "Linux" in the folder name "cmake-3.19.5-linux-x86_64".

I am using the role as follows:

  - role: dockpack.base_cmake
    become: true
    cmake_version: 3.19
    cmake_minor_version: 5
    cmake_dest_dir: /opt/cmake
    cmake_modify_path: true  

Then I get this error:

TASK [dockpack.base_cmake : ensure current symlink exists] *****************************************************************************************************
fatal: [ee-tik-cn011.ethz.ch]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0777", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /opt/cmake/cmake-3.19.5-linux-x86_64/", "owner": "root", "path": "/opt/cmake/current", "size": 37, "src": "/opt/cmake/cmake-3.19.5-linux-x86_64/", "state": "link", "uid": 0}

However, when I create before a symlink like here:

pjattke@node:/opt/cmake$ sudo ln -s cmake-3.19.5-Linux-x86_64 cmake-3.19.5-linux-x86_64

Then it just works fine!

Is this a bug or am I am missing something?

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