I am automating conda installation with ansible but the last step of getting the conda activated (the conda init ) getting failed.
I tried to run conda init as shell script and command module all failed.
Code:
--- - hosts: all gather_facts: true tasks: - name: Ansible copy file to remote server copy: src: ~/Downloads/Anaconda3-2019.03-Linux-x86_64.sh dest: ~/Downloads/Anaconda3-2019.03-Linux-x86_64.sh - name: Run the installer Anaconda command: bash ~/Downloads/Anaconda3-2019.03-Linux-x86_64.sh -b - name: add path shell: export PATH=~/anaconda3/bin:$PATH - name: initialize conda shell: init conda args: executable: /bin/bash
Error:
- "stderr": "Expected single character argument.", "stderr_lines":