Skip to content

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

@pjattke

Description

@pjattke

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions