Add an option to auto-activate base env (default: true)

This commit is contained in:
Alexander Gorelyshev
2026-05-19 17:33:00 +04:00
parent e7d5f4d383
commit 0ac66b8f22
2 changed files with 10 additions and 0 deletions

View File

@@ -99,3 +99,12 @@
loop_control:
loop_var: file
ansible.builtin.include_tasks: "manifests.yml"
- name: "Miniforge | auto-activate base environment for user: {{ user.name }}"
when: miniforge_auto_activate_base
become: true
become_user: "{{ user.name }}"
changed_when: false
ansible.builtin.command:
cmd: "{{ miniforge_mamba_bin_path }} config --set auto_activate_base true"