andrewrothstein / ansible-anaconda

Ansible role for installing Anaconda
MIT License
47 stars 42 forks source link

Failure to uninstall conda-curl with newer versions of Anaconda #28

Closed colin-nolan closed 6 years ago

colin-nolan commented 6 years ago

I don't think conda-curl is installed with later versions of Anaconda, which causes the remove conda-curl since it conflicts with the system curl step to fail:

FAILED! => {"changed": true, "cmd": ["/usr/local/anaconda-5.1.0/bin/conda", "remove", "-y", "curl"], "delta": "0:00:03.035634", "end": "2018-03-28 08:48:27.526240", "msg": "non-zero return code", "rc": 1, "start": "2018-03-28 08:48:24.490606", "stderr": "\nPackagesNotFoundError: The following packages are missing from the target environment:\n  - curl", "stderr_lines": ["", "PackagesNotFoundError: The following packages are missing from the target environment:", "  - curl"], "stdout": "Solving environment: ...working... failed", "stdout_lines": ["Solving environment: ...working... failed"]}

Perhaps it would be a good idea to use the conda module developed here to remove conda-curl, instead of using a command?

andrewrothstein commented 6 years ago

great idea! I'd gladly accept a pull request to that effect!