Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/add-software/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ An install runs **only when both tags are supplied**:
community.general.make:
chdir: "{{ unzip_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Install <software> {{ version_number }}
community.general.make:
chdir: "{{ unzip_dir }}"
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,17 @@ jobs:
- name: ansible-lint
working-directory: ansible
run: uv run ansible-lint

# ansible-lint ships no rule for this, so it needs its own gate. Facts must
# be read as ansible_facts['name']; the bare injected form is deprecated in
# ansible-core 2.21 and removed in 2.24. Covers the non-YAML templates
# (.def/.sh/.lua/.j2) that neither linter looks at.
- name: Reject bare injected facts
working-directory: ansible
run: |
if grep -rnE '\bansible_(env|processor_vcpus|processor_count|architecture)\b' \
--include='*.yml' --include='*.yaml' --include='*.def' \
--include='*.j2' --include='*.lua' --include='*.sh' .; then
echo "::error::Use ansible_facts['name'] - top-level fact injection is removed in ansible-core 2.24"
exit 1
fi
5 changes: 5 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@ uv run ansible-lint # target profile: production
`vars:` must be a **mapping, not a list**.
- Unpack into **`/dev/shm`**; use **`creates:`** on build commands for idempotency.
- Keep any Jinja template at the **end** of a task `name:`.
- **Facts via `ansible_facts['name']`**, never the bare injected `ansible_processor_vcpus`
/ `ansible_env` form — top-level injection is deprecated in ansible-core 2.21 and removed
in 2.24. `ansible.cfg` sets `inject_facts_as_vars = False`, so a bare reference fails at
runtime; a CI grep step gates it at PR time (ansible-lint has no rule for this). Magic and
connection vars (`ansible_run_tags`, `ansible_connection`) are unaffected.
4 changes: 4 additions & 0 deletions ansible/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ ansible_connection = ssh
inventory = ./inventory
roles_path = ./roles
gathering = smart
# Facts are consumed via ansible_facts['name']; top-level injection is removed
# in ansible-core 2.24. Disabling it now makes any missed bare `ansible_*`
# reference fail loudly instead of silently resolving to the wrong thing.
inject_facts_as_vars = False
# fact_caching = redis


Expand Down
2 changes: 1 addition & 1 deletion ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ python_dir: "{{ common_dir }}/python"
uv_version: "0.11.23"
uv_dir: "{{ common_dir }}/uv"
uv: "{{ uv_dir }}/{{ uv_version }}/bin/uv"
uv_arch: "{{ ansible_architecture }}" # x86_64 / aarch64
uv_arch: "{{ ansible_facts['architecture'] }}" # x86_64 / aarch64
uv_checksums:
x86_64: "sha256:e12c4cda2fe8c305510a78380a88f2c32a27e90cdcd123cefd2873388f0ebb5f"
aarch64: "sha256:1873a77350f6621279ae1a0d2227f2bd8b67131598f14a7eb0ba2215d3da2c98"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/astro/calceph.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Install calceph
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
FFLAGS: "-fallow-argument-mismatch"
CC: "gcc-10"
FC: "gfortran-10"
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/compiled/tasks/astro/cfitsio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
community.general.make:
chdir: "{{ unzipdir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"

- name: Build cfitsio shared {{ version_number }}
when: "'3.' in version_number"
community.general.make:
chdir: "{{ unzipdir }}"
target: shared
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"

- name: Install cfitsio {{ version_number }}
community.general.make:
Expand Down
10 changes: 5 additions & 5 deletions ansible/roles/compiled/tasks/bio/ambertools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
- never
- ambertools{{ item.version_number }}
environment:
PATH: "{{ cuda_root }}/bin:{{ mpi_root }}/bin:{{ hwloc_root }}/bin:{{ python_root }}/bin:{{ ansible_env.PATH }}"
INCLUDE: "{{ cuda_root }}/include:{{ mpi_root }}/include:{{ hwloc_root }}/include:{{ python_root }}/include{% if 'INCLUDE' in ansible_env %}:{{ ansible_env.INCLUDE
PATH: "{{ cuda_root }}/bin:{{ mpi_root }}/bin:{{ hwloc_root }}/bin:{{ python_root }}/bin:{{ ansible_facts['env'].PATH }}"
INCLUDE: "{{ cuda_root }}/include:{{ mpi_root }}/include:{{ hwloc_root }}/include:{{ python_root }}/include{% if 'INCLUDE' in ansible_facts['env'] %}:{{ ansible_facts['env'].INCLUDE
}}{% endif %}"
LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ mpi_root }}/lib:{{ hwloc_root }}/lib:{{ python_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_env %}:{{ ansible_env.LD_LIBRARY_PATH
LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ mpi_root }}/lib:{{ hwloc_root }}/lib:{{ python_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_facts['env'] %}:{{ ansible_facts['env'].LD_LIBRARY_PATH
}}{% endif %}"
PKG_CONFIG_PATH: "{{ cuda_root }}/pkgconfig:{{ mpi_root }}/lib/pkgconfig:{{ hwloc_root }}/lib/pkgconfig:{{ python_root }}/lib/pkgconfig{% if 'PKG_CONFIG_PATH'
in ansible_env %}:{{ ansible_env.PKG_CONFIG_PATH }}{% endif %}"
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
in ansible_facts['env'] %}:{{ ansible_facts['env'].PKG_CONFIG_PATH }}{% endif %}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
CUDA_PATH: "{{ cuda_root }}"
CUDA_DIR: "{{ cuda_root }}"
block:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/compiled/tasks/bio/bamtools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
community.general.make:
chdir: "{{ unzip_dir }}/build"
target: all
jobs: "{{ ansible_processor_count }}"
jobs: "{{ ansible_facts['processor_count'] }}"
params:
DESTDIR: "{{ unzip_dir }}/staging"
environment:
MAKEFLAGS: "-j {{ ansible_processor_count }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_count'] }}"

- name: Run make install
community.general.make:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/bcftools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
community.general.make:
chdir: "{{ unzip_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Install bcftools {{ version_number }} to {{ install_dir }}
community.general.make:
chdir: "{{ unzip_dir }}"
Expand Down
46 changes: 23 additions & 23 deletions ansible/roles/compiled/tasks/bio/beagle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
chdir: "{{ unzipdir }}"
creates: "{{ unzipdir }}/configure"
environment:
# PATH: "{{ cuda_location }}/bin:{{ ansible_env.PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_env.LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_env.LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_env.INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_env.C_INCLUDE | default('') }}"
# PKG_CONFIG_PATH: "{{ cuda_location }}/pkgconfig:{{ ansible_env.PKG_CONFIG_PATH | default('') }}"
# PATH: "{{ cuda_location }}/bin:{{ ansible_facts['env'].PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_facts['env'].LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_facts['env'].LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_facts['env'].INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_facts['env'].C_INCLUDE | default('') }}"
# PKG_CONFIG_PATH: "{{ cuda_location }}/pkgconfig:{{ ansible_facts['env'].PKG_CONFIG_PATH | default('') }}"
CFLAGS: "-fstack-protector -Wformat"
- name: Run configure BEAGLE {{ version_number }}
ansible.builtin.command: "./configure --prefix={{ install_dir }} --with-cuda={{ cuda_location }} --with-jdk={{ java_location }}"
Expand All @@ -56,11 +56,11 @@
JDK_HOME: "{{ java_location }}"
CC: "gcc-8"
CXX: "g++-8"
PATH: "{{ java_location }}/bin:{{ ansible_env.PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_env.LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_env.LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ ansible_env.INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ ansible_env.C_INCLUDE | default('') }}"
PATH: "{{ java_location }}/bin:{{ ansible_facts['env'].PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_facts['env'].LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_facts['env'].LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ ansible_facts['env'].INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ ansible_facts['env'].C_INCLUDE | default('') }}"
CFLAGS: "-fstack-protector -Wformat"
# GCC_EXEC_PREFIX: "-8"
# - name: Run cmake BEAGLE {{ version_number }} configure
Expand All @@ -69,25 +69,25 @@
# chdir: "{{ build_dir }}"
## creates: "{{ build_dir }}/Makefile"
# environment:
# PATH: "{{ cuda_location }}/bin:{{ ansible_env.PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_env.LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_env.LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_env.INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_env.C_INCLUDE | default('') }}"
# PKG_CONFIG_PATH: "{{ cuda_location }}/pkgconfig:{{ ansible_env.PKG_CONFIG_PATH | default('') }}"
# PATH: "{{ cuda_location }}/bin:{{ ansible_facts['env'].PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_facts['env'].LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib64:{{ cuda_location }}/extras/CUPTI/lib64:{{ ansible_facts['env'].LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_facts['env'].INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ cuda_location }}/extras/CUPTI/include:{{ ansible_facts['env'].C_INCLUDE | default('') }}"
# PKG_CONFIG_PATH: "{{ cuda_location }}/pkgconfig:{{ ansible_facts['env'].PKG_CONFIG_PATH | default('') }}"
# CFLAGS: "-fstack-protector -Wformat"
- name: Build BEAGLE {{ version_number }}
community.general.make:
chdir: "{{ unzipdir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
JAVA_HOME: "{{ java_location }}"
JDK_HOME: "{{ java_location }}"
PATH: "{{ java_location }}/bin:{{ ansible_env.PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_env.LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_env.LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ ansible_env.INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ ansible_env.C_INCLUDE | default('') }}"
PATH: "{{ java_location }}/bin:{{ ansible_facts['env'].PATH }}"
# LD_LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_facts['env'].LD_LIBRARY_PATH | default('') }}"
# LIBRARY_PATH: "{{ cuda_location }}/lib:{{ ansible_facts['env'].LIBRARY_PATH | default('') }}"
# INCLUDE: "{{ cuda_location }}/include:{{ ansible_facts['env'].INCLUDE | default('') }}"
# C_INCLUDE: "{{ cuda_location }}/include:{{ ansible_facts['env'].C_INCLUDE | default('') }}"
# GCC_EXEC_PREFIX: "-8"
- name: Install BEAGLE {{ version_number }}
community.general.make:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/bedtools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
community.general.make:
chdir: "{{ unzip_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Copy bedtools {{ version_number }} binaries to {{ install_dir }}
ansible.builtin.copy:
src: "{{ unzip_dir }}/bin/"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/biobambam2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
community.general.make:
chdir: "{{ repo_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Install biobambam2 {{ version_number }} to {{ install_dir }}
community.general.make:
chdir: "{{ repo_dir }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/bismark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
unarchive_dir: "/dev/shm/Bismark-{{ version_number }}"
install_dir: "{{ bismark_dir }}/{{ version_number }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
tags:
- never
- bismark{{ item.version_number }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/bowtie2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
unarchive_dir: "/dev/shm/bowtie2-{{ version_number }}-linux-x86_64"
install_dir: "{{ bowtie2_dir }}/{{ version_number }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
tags:
- never
- bowtie2-{{ item.version_number }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/bwa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
community.general.make:
chdir: "{{ unzip_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: "Copy bwa and bwakit to {{ install_dir }}"
ansible.builtin.command: "mv {{ unzip_dir }}/bwa {{ unzip_dir }}/bwakit {{ install_dir }}"
args:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/chopper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
chdir: "{{ unzipdir }}"
creates: "{{ install_dir }}/bin/chopper"
environment:
PATH: "{{ cargo_dir }}/bin:{{ ansible_env.PATH | default('') }}"
PATH: "{{ cargo_dir }}/bin:{{ ansible_facts['env'].PATH | default('') }}"

- name: Install chopper module {{ version_number }}
block:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/gfaffix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
chdir: "{{ unzip_dir }}"
creates: "{{ install_dir }}/bin/gfaffix"
environment:
PATH: "{{ cargo_dir }}/bin:{{ ansible_env.PATH | default('') }}"
PATH: "{{ cargo_dir }}/bin:{{ ansible_facts['env'].PATH | default('') }}"

- name: Install GFAffix module {{ version_number }}
block:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/gfastats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
community.general.make:
chdir: "{{ unzipdir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Ensure installation directory exists {{ install_dir }}
ansible.builtin.file:
path: "{{ install_dir }}"
Expand Down
18 changes: 9 additions & 9 deletions ansible/roles/compiled/tasks/bio/gromacs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
- never
- gromacs{{ item.version_number }}
environment:
# PATH: "{{ cuda_root }}/bin:{{ mpi_root }}/bin:{{ hwloc_root }}/bin:{{ ansible_env.PATH }}"
# INCLUDE: "{{ cuda_root }}/include:{{ mpi_root }}/include:{{ hwloc_root }}/include{% if 'INCLUDE' in ansible_env %}:{{ ansible_env.INCLUDE }}{% endif %}"
# LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ mpi_root }}/lib:{{ hwloc_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_env %}:{{ ansible_env.LD_LIBRARY_PATH }}{% endif %}"
# PKG_CONFIG_PATH: "{{ cuda_root }}/pkgconfig:{{ mpi_root }}/lib/pkgconfig:{{ hwloc_root }}/lib/pkgconfig{% if 'PKG_CONFIG_PATH' in ansible_env %}:{{ ansible_env.PKG_CONFIG_PATH }}{% endif %}"
PATH: "{{ cuda_root }}/bin:{{ hwloc_root }}/bin:{{ ansible_env.PATH }}"
INCLUDE: "{{ cuda_root }}/include:{{ hwloc_root }}/include{% if 'INCLUDE' in ansible_env %}:{{ ansible_env.INCLUDE }}{% endif %}"
LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ hwloc_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_env %}:{{ ansible_env.LD_LIBRARY_PATH }}{% endif %}"
PKG_CONFIG_PATH: "{{ cuda_root }}/pkgconfig:{{ hwloc_root }}/lib/pkgconfig{% if 'PKG_CONFIG_PATH' in ansible_env %}:{{ ansible_env.PKG_CONFIG_PATH }}{% endif
# PATH: "{{ cuda_root }}/bin:{{ mpi_root }}/bin:{{ hwloc_root }}/bin:{{ ansible_facts['env'].PATH }}"
# INCLUDE: "{{ cuda_root }}/include:{{ mpi_root }}/include:{{ hwloc_root }}/include{% if 'INCLUDE' in ansible_facts['env'] %}:{{ ansible_facts['env'].INCLUDE }}{% endif %}"
# LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ mpi_root }}/lib:{{ hwloc_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_facts['env'] %}:{{ ansible_facts['env'].LD_LIBRARY_PATH }}{% endif %}"
# PKG_CONFIG_PATH: "{{ cuda_root }}/pkgconfig:{{ mpi_root }}/lib/pkgconfig:{{ hwloc_root }}/lib/pkgconfig{% if 'PKG_CONFIG_PATH' in ansible_facts['env'] %}:{{ ansible_facts['env'].PKG_CONFIG_PATH }}{% endif %}"
PATH: "{{ cuda_root }}/bin:{{ hwloc_root }}/bin:{{ ansible_facts['env'].PATH }}"
INCLUDE: "{{ cuda_root }}/include:{{ hwloc_root }}/include{% if 'INCLUDE' in ansible_facts['env'] %}:{{ ansible_facts['env'].INCLUDE }}{% endif %}"
LD_LIBRARY_PATH: "{{ cuda_root }}/lib64:{{ hwloc_root }}/lib{% if 'LD_LIBRARY_PATH' in ansible_facts['env'] %}:{{ ansible_facts['env'].LD_LIBRARY_PATH }}{% endif %}"
PKG_CONFIG_PATH: "{{ cuda_root }}/pkgconfig:{{ hwloc_root }}/lib/pkgconfig{% if 'PKG_CONFIG_PATH' in ansible_facts['env'] %}:{{ ansible_facts['env'].PKG_CONFIG_PATH }}{% endif
%}"
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
# CMAKE_CXX_COMPILER: "{{ mpi_root }}/bin/mpicxx"
block:
- name: Download GROMACS {{ version_number }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/hifiasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version_number: "{{ item.version_number }}"
url: "{{ item.url }}"
environment:
MAKEFLAGS: "-j{{ ansible_processor_vcpus | default(1) }}"
MAKEFLAGS: "-j{{ ansible_facts['processor_vcpus'] | default(1) }}"
tags:
- never
- hifiasm{{ item.version_number }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/htslib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
community.general.make:
chdir: "{{ unzip_dir }}"
environment:
MAKEFLAGS: "-j {{ ansible_processor_vcpus }}"
MAKEFLAGS: "-j {{ ansible_facts['processor_vcpus'] }}"
- name: Install htslib {{ version_number }} to {{ install_dir }}
community.general.make:
chdir: "{{ unzip_dir }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/compiled/tasks/bio/htstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
boost_dir: "{{ item.boost_dir }}"
boost_module: "{{ item.boost_module }}"
environment:
LD_LIBRARY_PATH: "{{ boost_dir }}/lib:{{ ansible_env.PATH }}"
LD_LIBRARY_PATH: "{{ boost_dir }}/lib:{{ ansible_facts['env'].PATH }}"
INCLUDE: "{{ boost_dir }}/include"
MAKEFLAGS: "-j 1"
tags:
Expand Down
Loading