Accept Anaconda ToS before conda env creation

This commit is contained in:
Jino Jose 2026-06-23 15:06:14 +05:30
parent a3abccd36f
commit 2ef5f4118b

View File

@ -72,6 +72,13 @@
create: yes
owner: cezen
- name: Accept Anaconda Terms of Service (required since 2024)
become_user: cezen
shell: |
/opt/cezen/miniconda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
/opt/cezen/miniconda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
changed_when: false
- name: Create cezen conda environment (Python 3.11)
become_user: cezen
command: /opt/cezen/miniconda/bin/conda create -n cezen python=3.11 -y