All Projects → UDST → Ansible Conda

UDST / Ansible Conda

Licence: bsd-2-clause
An Ansible module for managing Python packages via Conda

Programming Languages

python
139335 projects - #7 most used programming language

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:

- 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].