Skip to content
Snippets Groups Projects
Commit 794a76c7 authored by hugo chauvet's avatar hugo chauvet
Browse files

Add napari playbook

parent 896d0b30
Branches
No related tags found
No related merge requests found
# Ansible playbook to install Napari from Anaconda
---
- name: install napari from Conda
hosts: localhost
tasks:
- name: Download miniconda3-latest from repo.anaconda.com/miniconda
get_url:
url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
dest: ~/Téléchargements/
checksum: md5:122c8c9beb51e124ab32a0fa6426c656
mode: u+x
- name: Install miniconda3
shell:
cmd: ./Miniconda3-latest-Linux-x86_64.sh -b
chdir: ~/Téléchargements/
executable: /bin/bash
creates: ~/miniconda3
- name: Define miniconda as default système python système
shell:
cmd: ./conda init bash
chdir: ~/miniconda3/bin
- name: Create Napari environnement napari-env
shell:
cmd: conda create -n napari-env -y python=3.7
executable: /bin/bash
creates: ~/miniconda3/envs/napari-env
- name: install Napari from conda-forge
shell:
cmd: source ~/miniconda3/bin/activate napari-env && conda install -c conda-forge napari -y
executable: /bin/bash
creates: ~/miniconda3/envs/napari-env/bin/napari
- name: Create napari launcher on desktop
copy:
dest: ~/Bureau/Napari.desktop
content: |
[Desktop Entry]
Version=1.0
Type=Application
Name=Napari
Comment=
Exec=/home/guest/miniconda3/envs/napari-env/bin/napari
Icon=
Path=
Terminal=false
StartupNotify=false
mode: u+x
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment