Skip to content

Commit ab33ad8

Browse files
committed
fix: set CONDA_PLUGINS_AUTO_ACCEPT_TOS=true instead of using conda tos
1 parent 127c60e commit ab33ad8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roles/python/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
create: true
3737
block: |
3838
export PATH=/opt/python/{{ item }}/bin:/opt/python/miniconda/bin:$PATH
39+
export CONDA_PLUGINS_AUTO_ACCEPT_TOS=true
3940
loop: '{{ python_interpreter_versions }}'
4041
# uses the last element of the list
4142
when: item == python_interpreter_versions[-1]
@@ -108,7 +109,6 @@
108109

109110
- name: Install Python versions
110111
ansible.builtin.command: |
111-
/opt/python/miniconda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
112112
/opt/python/miniconda/bin/conda create --quiet --yes --prefix /opt/python/{{ item }} python={{ item }}
113113
loop: '{{ python_interpreter_versions }}'
114114
when: python_interpreter_versions is defined

0 commit comments

Comments
 (0)