chrisjsewell.conda.install_pkgs (0.0.9) — module

Install Conda packages

Authors: Chris Sewell (@chrisjsewell)

Install collection

Install with ansible-galaxy collection install chrisjsewell.conda:==0.0.9


Add to requirements.yml

  collections:
    - name: chrisjsewell.conda
      version: 0.0.9

Description

Install Conda packages

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: install packages via Conda
  chrisjsewell.conda.install_pkgs:
    env: myenv
    packages:
    - git=2
    - numpy

Inputs

    
env:
    description: Name of the environment (if it does not exist then it will be created).
    required: false
    type: str

channels:
    description: Extra channels to use when installing packages.
    elements: str
    required: false
    type: list

packages:
    description: The name of the packages to install.
    elements: str
    required: true
    type: list

executable:
    default: ~/.conda/bin/mamba
    description:
    - Full path to the conda executable
    - (~ expands to the user's home directory)
    type: path

extra_args:
    description: Extra arguments passed to the command.
    required: false
    type: str

Outputs

output:
  description: JSON output from Conda
  returned: changed == True
  type: dict
stderr:
  description: stderr content written by Conda
  returned: changed == True
  type: str