Commit b3ee54cb authored by eric pellegrini's avatar eric pellegrini

added role for installing and configuring conda

parent b6ca1a4c
- hosts: jhub_servers
remote_user: "{{ }}"
environment: "{{ proxy_settings }}"
- import_role:
name: roles/conda
Role Name
A brief description of the role goes here.
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.
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
- { role: username.rolename, x: 42 }
Author Information
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
author: Eric Pellegrini
description: Role to install and configure conda
company: Institut Laue Langevin
license: GPL-3.0-only
min_ansible_version: 2.0
- name: Ubuntu
- bionic
- conda
dependencies: []
- name: initialize and update conda
command: "{{ item }}"
- "{{ conda_exe }} init"
- "{{ conda_exe }} update -y conda"
conda_exe: "~/miniconda3/bin/conda"
- name: download latest miniconda
dest: "~/"
mode: u+x
force: True
- name: remove previous conda installation if any
path: "~/miniconda3"
state: absent
- name: install conda
command: "~/ -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