https://github.com/udst/ansible-conda
An Ansible module for managing Python packages via Conda
https://github.com/udst/ansible-conda
Last synced: about 1 year ago
JSON representation
An Ansible module for managing Python packages via Conda
- Host: GitHub
- URL: https://github.com/udst/ansible-conda
- Owner: UDST
- License: bsd-2-clause
- Created: 2014-10-10T20:08:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T16:54:04.000Z (over 2 years ago)
- Last Synced: 2024-04-16T05:28:47.819Z (about 2 years ago)
- Language: Python
- Size: 35.2 KB
- Stars: 51
- Watchers: 13
- Forks: 24
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Conda Ansible Module
Manage [conda][] installations of Python packages in [Ansible][] playbooks.
Put this module somewhere Ansible will find it
(like the `library/` directory next to your top level playbooks).
Usage is much like the built-in Ansible pip module.
This requires `conda` to already be installed somehow.
Examples:
```yaml
- name: install numpy via conda
conda: name=numpy state=latest
- name: install scipy 0.14 via conda
conda: name=scipy version="0.14"
- name: remove matplotlib from conda
conda: name=matplotlib state=absent
```
From `ansible-doc`:
```
> CONDA
Manage Python libraries via conda. Can install, update, and remove
packages.
Options (= is mandatory):
- channels
Extra channels to use when installing packages [Default: None]
- executable
Full path to the conda executable [Default: None]
- extra_args
Extra arguments passed to conda [Default: None]
- name
The name of a Python library to install [Default: None]
- state
State in which to leave the Python package (Choices: present,
absent, latest) [Default: present]
- version
A specific version of a library to install [Default: None]
Notes: Requires conda to already be installed. Will look under the home
directory for a conda executable.
```
[conda]: http://conda.pydata.org/
[Ansible]: http://docs.ansible.com/index.html