-
-
Save phaustin/edb833b258ed43c7dd4c0571e437831e to your computer and use it in GitHub Desktop.
Installing Minicaonda/Anaconda from Ansible playbook for all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Install Conda | |
block: | |
- name: Download Miniconda | |
get_url: | |
url: https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh | |
dest: /tmp/install-miniconda.sh | |
checksum: md5:a946ea1d0c4a642ddf0c3a26a18bb16d | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment