Ansible role: dagos.miniconda
A role for installing and configuring Miniconda.
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
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