forked from kfieldho/ansible-role-cmake
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels