jkglasbrenner.miniconda

Ansible Role: Miniconda

Build Status

This role installs Miniconda on Debian-based and RedHat-based Linux systems. Miniconda is a smaller version of Anaconda, which is a Python distribution that includes a package manager and environment manager.

To install this role, run:

ansible-galaxy install jkglasbrenner.miniconda

Requirements

None needed.

Role Variables

Here are the key variables and their default values:

# Miniconda package dependencies
miniconda_package_dependencies:
  - bzip2

# Main download server for Miniconda
miniconda_mirror: "https://repo.continuum.io/miniconda"

# Python version to use (2 or 3)
miniconda_python_ver: 3

# Version of Miniconda to install
miniconda_ver: "4.5.4"

# Checksums for Miniconda files
miniconda_checksums:
  Miniconda2-4.5.4-Linux-x86_64.sh: "md5:8a1c02f6941d8778f8afad7328265cf5"
  Miniconda3-4.5.4-Linux-x86_64.sh: "md5:a946ea1d0c4a642ddf0c3a26a18bb16d"

# Installer details for Miniconda
miniconda_name: "Miniconda{{ miniconda_python_ver }}-{{ miniconda_ver }}-Linux-x86_64"
miniconda_installer_sh: "{{ miniconda_name }}.sh"
miniconda_installer_url: "{{ miniconda_mirror }}/{{ miniconda_installer_sh }}"
miniconda_checksum: "{{ miniconda_checksums[miniconda_installer_sh] }}"

# Timeout for the download process
miniconda_timeout_seconds: 600

# Installation directory for Miniconda
miniconda_parent_dir: /opt
miniconda_etc_profile: /etc/profile.d
miniconda_dir: "{{ miniconda_parent_dir }}/miniconda"
miniconda_etc_profile_conda: "{{ miniconda_dir }}/etc/profile.d/conda"
miniconda_conda_bin: "{{ miniconda_dir }}/bin/conda"

# Should it update base packages after installation?
miniconda_pkg_update: true

Example Playbook

Here's a simple example of how to use this role in a playbook:

- hosts: all
  become: yes
  roles:
    - jkglasbrenner.miniconda

License

MIT

Informazioni sul progetto

Miniconda is the minimal version of Anaconda, a cross-platform Python distribution with a built-in environment and package manager.

Installa
ansible-galaxy install jkglasbrenner.miniconda
Licenza
mit
Download
432
Proprietario
Principal AI Engineer