pip-system-packages-installed
Example:
# Install the 'thefuck' and 'cookiecutter' Python packages system-wide - pip-system-packages-installed: packages: - thefuck - cookiecutter
Description
Install a list Python packages system-wide, using root permissions.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
list | -- | A list of a Python libraries to install or the urls (bzr+,hg+,git+,svn+) of the remote packages. Required |
Examples
Example 1
Install the 'thefuck' and 'cookiecutter' Python packages system-wide
Code
- pip-system-packages-installed: packages: - thefuck - cookiecutter
Code
doc: short_help: Install Python packages system-wide. help: | Install a list Python packages system-wide, using root permissions. examples: - title: Install the 'thefuck' and 'cookiecutter' Python packages system-wide vars: packages: - thefuck - cookiecutter args: packages: doc: short_help: A list of a Python libraries to install or the urls (bzr+,hg+,git+,svn+) of the remote packages. type: list schema: type: string required: true empty: false frecklets: - pip-requirements-present - frecklet: name: pip type: ansible-module properties: elevated: true idempotent: true internet: true task: become: true vars: name: '{{:: packages ::}}'
frecklecute pip-system-packages-installed --help Usage: frecklecute pip-system-packages-installed [OPTIONS] Install a list Python packages system-wide, using root permissions. Options: --packages PACKAGES A list of a Python libraries to install or the urls (bzr+,hg+,git+,svn+) of the remote packages. [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.pip_system_packages_installed.PipSystemPackagesInstalled # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class PipSystemPackagesInstalled(AutoPycklet): """Install a list Python packages system-wide, using root permissions. Args: packages: A list of a Python libraries to install or the urls (bzr+,hg+,git+,svn+) of the remote packages. """ FRECKLET_ID = "pip-system-packages-installed" packages: List = None def __post_init__(self): super(PipSystemPackagesInstalled, self).__init__(var_names=["packages"]) frecklet_class = PipSystemPackagesInstalled
# -*- coding: utf-8 -*- # # module path: pycklets.pip_system_packages_installed.PipSystemPackagesInstalled # from pyckles import AutoPycklet class PipSystemPackagesInstalled(AutoPycklet): """Install a list Python packages system-wide, using root permissions. Args: packages: A list of a Python libraries to install or the urls (bzr+,hg+,git+,svn+) of the remote packages. """ FRECKLET_ID = "pip-system-packages-installed" def __init__(self, packages=None): super(PipSystemPackagesInstalled, self).__init__(var_names=["packages"]) self._packages = packages @property def packages(self): return self._packages @packages.setter def packages(self, packages): self._packages = packages frecklet_class = PipSystemPackagesInstalled