1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Let the pip module return output.

This commit is contained in:
Michael DeHaan 2013-03-13 22:25:58 -04:00
parent f46721add1
commit b87e7c0f19

View file

@ -30,7 +30,7 @@ options:
name: name:
description: description:
- The name of a Python library to install - The name of a Python library to install
required: true required: false
default: null default: null
version: version:
description: description:
@ -230,7 +230,7 @@ def main():
changed = 'Successfully installed' in out_pip changed = 'Successfully installed' in out_pip
module.exit_json(changed=changed, cmd=cmd, name=name, version=version, module.exit_json(changed=changed, cmd=cmd, name=name, version=version,
state=state, requirements=requirements, virtualenv=env) state=state, requirements=requirements, virtualenv=env, stdout=out, stderr=err)
# this is magic, see lib/ansible/module_common.py # this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> #<<INCLUDE_ANSIBLE_MODULE_COMMON>>