Ansible role: dagos.miniconda

A role for installing and configuring Miniconda.

Requirements

None.

Role variables

The following variables are overridable by users to configure this role:

---
# Where to install miniconda?
install_dir: "~/software/miniconda"

# Which channels to add? Order might matter since they are appended to existing
# channels.
conda_channels:
  - conda-forge

# Which packages to install?
conda_packages:
  - pre-commit

Dependencies

None.

Example playbook

The following playbook is tested regularly as part of the defined CI pipeline:

---
- name: Converge
  hosts: all
  pre_tasks:
    - name: Create a test user
      ansible.builtin.user:
        name: test
        state: present
        create_home: true
        shell: /bin/bash
  roles:
    - role: dagos.miniconda
      become: true
      become_user: test
      vars:
        state: present
        conda_channels:
          - conda-forge
          - conda-canary
        conda_packages:
          - pre-commit
          - click

License

MIT

Author information

This role was created in 2022 by Lucas Resch.