diff --git a/roles/cpp/tasks/llvm.yaml b/roles/cpp/tasks/llvm.yaml index 1deac964..94912f60 100644 --- a/roles/cpp/tasks/llvm.yaml +++ b/roles/cpp/tasks/llvm.yaml @@ -39,13 +39,19 @@ - libclang-common-{{ cpp_llvm_version }}-dev - libclang-cpp{{ cpp_llvm_version }}-dev - libclang-{{ cpp_llvm_version }}-dev - - libomp-{{ cpp_llvm_version }}-dev - libunwind-{{ cpp_llvm_version }}-dev - lld-{{ cpp_llvm_version }} - - lldb-{{ cpp_llvm_version }} - llvm-{{ cpp_llvm_version }}-dev - llvm-{{ cpp_llvm_version }}-tools +- name: llvm | Temporarily install lldb and libomp on Ubuntu < 24.04 only + become: true + ansible.builtin.apt: + name: + - libomp-{{ cpp_llvm_version }}-dev + - lldb-{{ cpp_llvm_version }} + when: ansible_distribution_version is version('24.04', '<') + - name: llvm | Update LLVM alternatives become: true community.general.alternatives: