Parcourir la source

Anaconda

master
Parent
révision
3d23b6991a
3 fichiers modifiés avec 39 ajouts et 0 suppressions
  1. +3
    -0
      defaults/main.yml
  2. +20
    -0
      tasks/main.yml
  3. +16
    -0
      vars/main.yml

+ 3
- 0
defaults/main.yml Voir le fichier

@@ -1 +1,4 @@
---

conda_distribution: Miniconda3
conda_directory: /opt/{{ conda_distribution }}

+ 20
- 0
tasks/main.yml Voir le fichier

@@ -1 +1,21 @@
---

- name: download installer
get_url:
url: "{{ _conda_installer_download_url }}"
dest: "/tmp/{{ _conda_installer_filename }}"
checksum: "{{ _conda_installer_checksum }}"
mode: 0755
owner: root
group: root

- name: install
command: /tmp/{{ _conda_installer_filename }} -b -u -p {{ conda_directory }}
vars:
creates: "{{ conda_directory }}/bin/conda"

- name: link conda fish
file:
src: "{{ conda_directory }}/etc/fish/conf.d/conda.fish"
dest: /etc/fish/conf.d/conda.fish
state: link

+ 16
- 0
vars/main.yml Voir le fichier

@@ -1 +1,17 @@
---



_conda_installer_download_url: "{{ _conda_installer_download_url_map[conda_distribution] }}"
_conda_installer_download_url_map:
Anaconda3: https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
Anaconda2: https://repo.anaconda.com/archive/Anaconda2-5.3.0-Linux-x86_64.sh
Miniconda3: https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh
Miniconda2: https://repo.continuum.io/miniconda/Miniconda2-4.5.11-Linux-x86_64.sh
_conda_installer_filename: "{{ _conda_installer_download_url | urlsplit('path') | basename }}"
_conda_installer_checksum: "{{ _conda_installer_checksum_map[conda_distribution] }}"
_conda_installer_checksum_map:
Anaconda3: sha256:cfbf5fe70dd1b797ec677e63c61f8efc92dad930fd1c94d60390bb07fdc09959
Anaconda2: sha256:50eeaab24bfa2472bc6485fe8f0e612ed67e561eda1ff9fbf07b62c96443c1be
Miniconda3: md5:e1045ee415162f944b6aebfe560b8fee
Miniconda2: md5:458324438b7b0e5afcc272b63d44195d

Chargement…
Annuler
Enregistrer