-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.yml
54 lines (47 loc) · 1.23 KB
/
configure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- name: Install and configure Jupyter
hosts:
- localhost
gather_facts: false
tasks:
- name: Install CDO
become: yes
apt:
name: "{{ packages }}"
allow_unauthenticated: true
vars:
packages:
- cdo
- name: Download Miniconda
get_url:
url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
dest: /tmp/install-miniconda.sh
mode: 0550
- name: Create conda folder
become: True
file:
path: /opt/miniconda3
state: directory
owner: ubuntu
mode: 755
recurse: yes
- name: Run the installer
shell: /tmp/install-miniconda.sh -b -u -p /opt/miniconda3
- name: Remove the installer
file:
state: absent
path: /tmp/install-miniconda.sh
- name: Add miniconda bin to path
become: True
shell: echo 'export PATH=/opt/miniconda3/bin:$PATH' >> /etc/profile
- name: conda - read permission for all
become: True
file:
path: /opt/miniconda3
mode: +r
recurse: yes
- name: conda - execution permission for all
become: True
file:
path: /opt/miniconda3/bin
mode: +x
recurse: yes