|
123456789101112131415161718192021222324252627282930 |
- ---
-
- - name: download installer
- get_url:
- url: "{{ conda_installer_url }}"
- dest: "/opt/{{ _conda_installer_filename }}"
- checksum: "{{ conda_installer_checksum }}"
- mode: 0755
- owner: root
- group: root
-
- - name: install
- 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_command
- failed_when: _conda_command.rc != 0 or not _conda.success
- changed_when: _conda.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
|