Commit 2d8a5851 authored by eric pellegrini's avatar eric pellegrini

replaced jupyter_admin_home variables by ansible_env

parent 2ec6caf6
......@@ -18,7 +18,7 @@
- name: copy the bash kernel from .local to proper location
copy:
src: "{{ jupyter_admin_home }}/.local/share/jupyter/kernels/bash"
src: "{{ ansible_env.HOME }}/.local/share/jupyter/kernels/bash"
dest: "{{ conda_envs_dir }}/bash/share/jupyter/kernels/"
remote_src: yes
......
......@@ -17,7 +17,7 @@
- name: fetch the latest julia package
get_url:
url: https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.4-linux-x86_64.tar.gz
dest: "{{ jupyter_admin_home }}/julia.tar.gz"
dest: "{{ ansible_env.HOME }}/julia.tar.gz"
- name: create the directory for julia installation
file:
......@@ -26,14 +26,14 @@
- name: unarchive the julia installer
unarchive:
src: "{{ jupyter_admin_home }}/julia.tar.gz"
src: "{{ ansible_env.HOME }}/julia.tar.gz"
dest: "{{ conda_envs_dir }}/julia/opt"
remote_src: yes
keep_newer: yes
- name: remove julia installer archive
file:
path: "{{ jupyter_admin_home }}/julia.tar.gz"
path: "{{ ansible_env.HOME }}/julia.tar.gz"
state: absent
- name: install julia kernel and extra plotting packages
......
......@@ -29,7 +29,7 @@
- name: clone ScientificPython repository
git:
repo: https://code.ill.fr/scientific-software/scientific-python.git
dest: "{{ jupyter_admin_home }}/git/scientific-python"
dest: "{{ ansible_env.HOME }}/git/scientific-python"
version: HEAD
- name: install ScientificPython package
......@@ -39,7 +39,7 @@
python2 setup.py build --netcdf_prefix="{{ conda_envs_dir }}/mdanse/"
python2 setup.py install
args:
chdir: "{{ jupyter_admin_home }}/git/scientific-python"
chdir: "{{ ansible_env.HOME }}/git/scientific-python"
executable: /bin/bash
- name: copy netcdf header into ScientificPython include directory
......@@ -56,7 +56,7 @@
- name: clone MMTK repository
git:
repo: https://code.ill.fr/scientific-software/mmtk.git
dest: "{{ jupyter_admin_home }}/git/mmtk"
dest: "{{ ansible_env.HOME }}/git/mmtk"
version: HEAD
- name: install MMTK package
......@@ -66,12 +66,12 @@
python2 setup.py build
python2 setup.py install
args:
chdir: "{{ jupyter_admin_home }}/git/mmtk"
chdir: "{{ ansible_env.HOME }}/git/mmtk"
executable: /bin/bash
- name: remove MMTK sources
file:
path: "{{ jupyter_admin_home }}/git/mmtk"
path: "{{ ansible_env.HOME }}/git/mmtk"
state: absent
- name: clone MDANSE repository
......@@ -92,7 +92,7 @@
- name: remove MDANSE sources
file:
path: "{{ jupyter_admin_home }}/git/mdanse"
path: "{{ ansible_env.HOME }}/git/mdanse"
state: absent
- name: copy the bash logo
......
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