|
|
@@ -18,9 +18,9 @@ |
|
|
|
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 |
|
|
|
register: _conda_command |
|
|
|
failed_when: _conda_command.rc != 0 or not _conda.success |
|
|
|
changed_when: _conda.actions is defined |
|
|
|
|
|
|
|
- name: link conda fish |
|
|
|
file: |
|
|
@@ -28,3 +28,19 @@ |
|
|
|
dest: /etc/fish/conf.d/conda.fish |
|
|
|
state: link |
|
|
|
follow: false |
|
|
|
|
|
|
|
- name: anaconda environment |
|
|
|
command: conda create -n anaconda anaconda --json --quiet |
|
|
|
environment: |
|
|
|
PATH: /opt/conda/bin:{{ ansible_env.PATH }} |
|
|
|
args: |
|
|
|
creates: "{{ conda_directory }}/envs/anaconda" |
|
|
|
when: conda_anaconda_env |
|
|
|
|
|
|
|
- name: update anaconda environment |
|
|
|
command: conda update -n anaconda --all --json --quiet |
|
|
|
environment: |
|
|
|
PATH: /opt/conda/bin:{{ ansible_env.PATH }} |
|
|
|
register: _conda_command |
|
|
|
changed_when: _conda.actions is defined |
|
|
|
when: conda_anaconda_env |