|
|
@@ -2,20 +2,29 @@ |
|
|
|
|
|
|
|
- name: download installer |
|
|
|
get_url: |
|
|
|
url: "{{ _conda_installer_download_url }}" |
|
|
|
dest: "/tmp/{{ _conda_installer_filename }}" |
|
|
|
checksum: "{{ _conda_installer_checksum }}" |
|
|
|
url: "{{ conda_installer_url }}" |
|
|
|
dest: "/opt/{{ _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: |
|
|
|
command: /opt/{{ _conda_installer_filename }} -b -p {{ conda_directory }} |
|
|
|
args: |
|
|
|
creates: "{{ conda_directory }}/bin/conda" |
|
|
|
|
|
|
|
- name: update |
|
|
|
command: conda update --all --json --quiet |
|
|
|
environment: |
|
|
|
PATH: /opt/conda/bin:{{ ansible_env.PATH }} |
|
|
|
register: _conda_update_command |
|
|
|
failed_when: _conda_update_command.rc != 0 and not _conda_update.sucess |
|
|
|
changed_when: _conda_update.actions is defined |
|
|
|
|
|
|
|
- name: link conda fish |
|
|
|
file: |
|
|
|
src: "{{ conda_directory }}/etc/fish/conf.d/conda.fish" |
|
|
|
dest: /etc/fish/conf.d/conda.fish |
|
|
|
state: link |
|
|
|
follow: false |