Commit b3ee54cb authored by eric pellegrini's avatar eric pellegrini

added role for installing and configuring conda

parent b6ca1a4c
---
- hosts: jhub_servers
remote_user: "{{ cluster_users.1.name }}"
environment: "{{ proxy_settings }}"
tasks:
- import_role:
name: roles/conda
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
galaxy_info:
author: Eric Pellegrini
description: Role to install and configure conda
company: Institut Laue Langevin
license: GPL-3.0-only
min_ansible_version: 2.0
platforms:
- name: Ubuntu
versions:
- bionic
galaxy_tags:
- conda
dependencies: []
---
- name: initialize and update conda
command: "{{ item }}"
loop:
- "{{ conda_exe }} init"
- "{{ conda_exe }} update -y conda"
vars:
conda_exe: "~/miniconda3/bin/conda"
---
- name: download latest miniconda
get_url:
url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
dest: "~/Miniconda3-latest-Linux-x86_64.sh"
mode: u+x
force: True
- name: remove previous conda installation if any
file:
path: "~/miniconda3"
state: absent
- name: install conda
command: "~/Miniconda3-latest-Linux-x86_64.sh -b -u"
---
# tasks file for roles/conda
- import_tasks: install.yml
- import_tasks: configure.yml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment