Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing condas strange exit code and json stdout outputs #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 18, 2017

  1. accepting version definitions inside the name parameter

    Sometimes you want to conda install a bunch of packages at once
    and for some of them you have a version restriction, like
    
    - name: installing conda packages
      conda:
        name: "{{ item }}"
      with_items:
        - pandas
        - pyqt=4.11.4
        - chardet
    
    The version evaluation is not done yet
    shaoran committed May 18, 2017
    Configuration menu
    Copy the full SHA
    cd58e4a View commit details
    Browse the repository at this point in the history
  2. fixing condas strange exit code and json stdout outputs

    The conda version I was using did not behave as it was exepcted by this
    module.
    
    conda list --json returns two different structures depending on whether
    the package was initially installed by "pip".
    
    I had the following problem: I wanted to make sure than some packages
    are installed:
    
    - name: Installing packages
      conda: name=pip
    
    The very first time that this was executed conda list --json returned a
    json structure that was not expected. If you manually installed pip with
    conda, then the have the regular structure.
    
    I ran constantly into these kind of issues. I've been deploying conda on
    several machines and not once they have failed.
    shaoran committed May 18, 2017
    Configuration menu
    Copy the full SHA
    2a38f5d View commit details
    Browse the repository at this point in the history