Skip to content

Commit

Permalink
Migrate from maresb to mamba-org
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Nov 27, 2021
1 parent e3d4dc0 commit adeafb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
25 changes: 6 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
# Migration notice
# Ansible role: mambaorg.micromamba

This role has been accepted into the official Mamba organization! 🎉 🚀

Development under the `maresb` namespace will cease. Please switch to the Mamba organization instead, with the new links below.

(The v1.2.X releases differ only in the README.)
Install micromamba, and optionally create a root/base conda environment.

## New Links
## Links

* [GitHub](https://github.com/mamba-org/ansible-role-micromamba)
* [Galaxy](https://galaxy.ansible.com/mambaorg/micromamba)
* [Advanced usage example](https://github.com/maresb/micromamba-role-example) for bootstrapping and setting up a system conda environment in a Docker image

## Old Links

* [GitHub](https://github.com/maresb/ansible-micromamba-role)
* [Galaxy](https://galaxy.ansible.com/maresb/micromamba)

## Ansible role: maresb.micromamba

Install micromamba, and optionally create a root/base conda environment.

## Motivation

[Conda](https://docs.conda.io/projects/conda) is a very powerful Python-centric dependency management tool. Unfortunately, for environments with large numbers of dependencies, its slow dependency solver can take [hours](https://github.com/iterative/dvc.org/issues/2370#issuecomment-818891218) to complete.
Expand Down Expand Up @@ -90,7 +77,7 @@ Contents to write to `.condarc` in the new root prefix. If not defined, then no
- hosts: servers
become: yes
roles:
- maresb.micromamba
- mambaorg.micromamba
```

This downloads the `micromamba` executable to the default location of `/usr/local/bin/micromamba`.
Expand All @@ -101,7 +88,7 @@ This downloads the `micromamba` executable to the default location of `/usr/loca
- hosts: servers
become: yes
roles:
- maresb.micromamba
- mambaorg.micromamba
vars:
dest: /tmp/micromamba
root_prefix: /opt/conda
Expand All @@ -119,7 +106,7 @@ This downloads `micromamba` into `/tmp/micromamba` and creates a new root prefix
become: yes
become_user: condauser
roles:
- maresb.micromamba
- mambaorg.micromamba
vars:
root_prefix: ~/micromamba
root_prefix_condarc:
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
galaxy_info:
role_name: micromamba
author: Ben Mares
namespace: maresb
namespace: mambaorg
description: Install micromamba, and optionally create a base conda environment.

license: MIT
Expand Down
6 changes: 3 additions & 3 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- name: Install just the executable
include_role:
name: maresb.micromamba
name: mambaorg.micromamba

- name: Create condauser
user:
Expand All @@ -19,7 +19,7 @@

- name: Create user-based prefix at /home/condauser/micromamba-test
include_role:
name: maresb.micromamba
name: mambaorg.micromamba
vars:
ansible_user: condauser
root_prefix: ~/micromamba-test
Expand All @@ -37,7 +37,7 @@

- name: Create a prefix, install packages, create .condarc in /opt/conda
include_role:
name: maresb.micromamba
name: mambaorg.micromamba
vars:
root_prefix: /opt/conda
packages:
Expand Down

0 comments on commit adeafb0

Please sign in to comment.