Skip to content

Commit

Permalink
Update pulsar.yml
Browse files Browse the repository at this point in the history
moves miniconda tasks into metacentrum.pulsar role
  • Loading branch information
martindemko authored Nov 15, 2024
1 parent 08fd125 commit d34dff9
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions pulsar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,54 +46,6 @@
owner: "{{ galaxy_user.name }}"
group: "{{ galaxy_user.group }}"
become: yes

- name: Check for Miniconda existence
stat:
path: "{{ miniconda_prefix }}/bin/conda"
register: miniconda_exists
become: yes
become_user: "{{ galaxy_user.name }}"
- name: Download Miniconda installer
ansible.builtin.get_url:
url: "https://repo.anaconda.com/miniconda/Miniconda3-py39_{{ miniconda_version }}-1-Linux-x86_64.sh"
dest: "/home/{{ galaxy_user.name }}/Miniconda3-py39_{{ miniconda_version }}-1-Linux-x86_64.sh"
become: yes
become_user: "{{ galaxy_user.name }}"
when: not miniconda_exists.stat.exists
- name: Install Miniconda to NFS home
ansible.builtin.shell:
cmd: "/bin/bash /home/{{ galaxy_user.name }}/Miniconda3-py39_{{ miniconda_version }}-1-Linux-x86_64.sh -b -p {{ miniconda_prefix }}"
become: yes
become_user: "{{ galaxy_user.name }}"
when: not miniconda_exists.stat.exists
- name: Ensure conda folder is executable
ansible.builtin.file:
path: "{{ miniconda_prefix }}/bin"
state: directory
recurse: yes
mode: 'a+x'
become: yes
become_user: "{{ galaxy_user.name }}"
- name: Check for mamba bin
stat:
path: "{{ miniconda_prefix }}/bin/mamba"
register: mamba_exists
become: yes
become_user: "{{ galaxy_user.name }}"
- name: Activate base env and install mamba
ansible.builtin.command: "{{ miniconda_prefix }}/bin/conda install -y -c conda-forge mamba"
become: yes
become_user: "{{ galaxy_user.name }}"
when: not mamba_exists.stat.exists
- name: Ensure conda folder is executable again
ansible.builtin.file:
path: "{{ miniconda_prefix }}/bin"
state: directory
recurse: yes
mode: 'a+x'
become: yes
become_user: "{{ galaxy_user.name }}"
when: not mamba_exists.stat.exists

roles:
- role: metacentrum.pulsar
Expand Down

0 comments on commit d34dff9

Please sign in to comment.