pip-requirements-present

Example:

# install requirements that subsequent 'pip' invocations will work
- pip-requirements-present

Description

Install dependencies so 'pip' can be used by Ansible.

This is a helper frecklet, and probably does not need to be called directly by any user. This is a workaround for issue: https://github.com/ansible/ansible/issues/47361 , ideally this would not be necessary in every case.

Examples

Example 1

install requirements that subsequent 'pip' invocations will work

Code
- pip-requirements-present

Code

doc:
  short_help: Install dependencies so 'pip' can be used by Ansible.
  help: |
    Install dependencies so 'pip' can be used by Ansible.

    This is a helper frecklet, and probably does not need  to be called directly by any user.
    This is a workaround for issue: https://github.com/ansible/ansible/issues/47361 , ideally this would not be necessary in every case.
  examples:
  - title: install requirements that subsequent 'pip' invocations will work

frecklets:
- frecklet:
    name: pip-requirements.at.yml
    type: ansible-tasklist
    resources:
      ansible-tasklist:
      - pip-requirements.at.yml
    desc:
      short: install requirements for python package install
    properties:
      idempotent: true
      internet: true
      elevated: true
frecklecute pip-requirements-present --help

Usage: frecklecute pip-requirements-present [OPTIONS]

  Install dependencies so 'pip' can be used by Ansible.

  This is a helper frecklet, and probably does not need  to be called
  directly by any user. This is a workaround for issue:
  https://github.com/ansible/ansible/issues/47361 , ideally this would not
  be necessary in every case.

Options:
  --help  Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.pip_requirements_present.PipRequirementsPresent
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class PipRequirementsPresent(AutoPycklet):
    """Install dependencies so 'pip' can be used by Ansible.

     This is a helper frecklet, and probably does not need  to be called directly by any user.
     This is a workaround for issue: https://github.com/ansible/ansible/issues/47361 , ideally this would not be necessary in every case.

       Args:

    """

    FRECKLET_ID = "pip-requirements-present"



    def __post_init__(self):
        super(PipRequirementsPresent, self).__init__(var_names=[])


frecklet_class = PipRequirementsPresent
# -*- coding: utf-8 -*-


#
# module path: pycklets.pip_requirements_present.PipRequirementsPresent
#


from pyckles import AutoPycklet

class PipRequirementsPresent(AutoPycklet):
    """Install dependencies so 'pip' can be used by Ansible.

     This is a helper frecklet, and probably does not need  to be called directly by any user.
     This is a workaround for issue: https://github.com/ansible/ansible/issues/47361 , ideally this would not be necessary in every case.

       Args:

    """

    FRECKLET_ID = "pip-requirements-present"

    def __init__(self, ):

        super(PipRequirementsPresent, self).__init__(var_names=[])



frecklet_class = PipRequirementsPresent