galaxyproject.miniconda
galaxyproject.miniconda
This is an Ansible role designed for installing and managing Miniconda. It also helps create a Conda environment for setting up a venv specifically for Galaxy.
Requirements
You need a version of Linux or macOS that is compatible with Conda.
Role Variables
For a complete list, check defaults/main.yml.
The only essential variable is miniconda_prefix
, which defines where Conda will be installed.
To create custom conda environments, use the variable miniconda_conda_environments
, as shown in the defaults or in the example below. This role will also run conda install
to update environments if the package list or package versions change.
If you want to create an environment named _galaxy_
for setting up a venv for Galaxy, set galaxy_conda_create_env
to true
. After that, you can use {{ miniconda_prefix }}/envs/_galaxy_/bin/virtualenv
as the galaxy_virtualenv_command
value in galaxyproject.galaxy. This is helpful if you need a version of Python and Galaxy's venv that works across different systems on a shared filesystem, like between a Galaxy server and a cluster with different operating systems.
Dependencies
None
Example Playbook
- hosts: localhost
vars:
miniconda_prefix: /conda
miniconda_conda_environments:
[email protected]:
channels: # optional, defaults to miniconda_channels
- conda-forge
- defaults
packages:
- python=3.9
connection: local
roles:
- galaxyproject.miniconda
License
MIT
Author Information
Install and maintain a Miniconda (https://docs.conda.io/en/latest/miniconda.html) installation, and optionally, for Galaxy (https://galaxyproject.org/)
ansible-galaxy install galaxyproject.miniconda