Skip to content

An Ansible module for managing Python packages via Conda

License

Notifications You must be signed in to change notification settings

apahne/ansible-conda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An Ansible module for managing Python packages via Conda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 3.0%