pytoccaz / pytoccaz.utils / 1.1.0 / module / python_module_check Is a python module available | "added in version" 1.1.0 of pytoccaz.utils" Authors: Olivier Bernard (@pytoccaz)pytoccaz.utils.python_module_check (1.1.0) — module
Install with ansible-galaxy collection install pytoccaz.utils:==1.1.0
collections: - name: pytoccaz.utils version: 1.1.0
Is a python module available on target host
- name: Is python-docker available ? pytoccaz.utils.python_module_check: name: docker register: module_docker
- debug: var: module_docker.is_installed
- name: Is html.parser available ? pytoccaz.utils.python_module_check: name: html.parser register: module_parser
- debug: var: module_parser.is_installed
- name: Is html.parser available (using package parameter) ? pytoccaz.utils.python_module_check: name: .parser package: html register: module_parser
- debug: var: module_parser.is_installed
name: aliases: - module_name description: - Name of the python module required: true type: str version_added: 1.1.0 version_added_collection: pytoccaz.utils package: description: - Path of the python package - Start name parameter value with a dot required: false type: str version_added: 1.1.0 version_added_collection: pytoccaz.utils
is_installed: description: If the python module is actually installed returned: always sample: true type: bool