New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip module: logging option ? #19816

Closed
juju4 opened this Issue Jan 3, 2017 · 7 comments

Comments

Projects
None yet
5 participants
@juju4

juju4 commented Jan 3, 2017

From @juju4 on October 12, 2016 2:35

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

pip module

ANSIBLE VERSION
$ ansible --version
ansible 2.1.2.0
  config file = /opt/tmp/vagrant/homelab/ansible.cfg
  configured module search path = Default w/o overrides
OS / ENVIRONMENT

Orchestrator: Linux Ubuntu Trusty or Xenial
Guest: various

SUMMARY

when you do system package, there is a log file with activity history.
python pip has a logging option
https://pip.pypa.io/en/stable/reference/pip/#file-logging
pip module should make it available.

As a note, this remark is valid for gem too but I didn't find a native option.

example

- pip: name=bottle version=0.11 log=/var/log/pip.log

should result in command

pip install bottle==0.11 --log /var/log/pip.log

Thanks

Copied from original issue: ansible/ansible-modules-core#5231

@juju4

This comment has been minimized.

Show comment
Hide comment
@juju4

juju4 Jan 3, 2017

From @ansibot on October 12, 2016 2:46

@mattupstate ping, this issue is waiting for your response.
click here for bot help

juju4 commented Jan 3, 2017

From @ansibot on October 12, 2016 2:46

@mattupstate ping, this issue is waiting for your response.
click here for bot help

@juju4

This comment has been minimized.

Show comment
Hide comment
@juju4

juju4 Jan 3, 2017

From @ansibot on December 7, 2016 19:16

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.

juju4 commented Jan 3, 2017

From @ansibot on December 7, 2016 19:16

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.

@gundalow

This comment has been minimized.

Show comment
Hide comment
@gundalow

gundalow Jan 4, 2017

Contributor

Not sure when the log option was added to pip, so who ever implements this would need to check that the log option exists in the version of pip that is being used.

Contributor

gundalow commented Jan 4, 2017

Not sure when the log option was added to pip, so who ever implements this would need to check that the log option exists in the version of pip that is being used.

@gundalow gundalow removed the needs_triage label Jan 4, 2017

@Lujeni

This comment has been minimized.

Show comment
Hide comment
@Lujeni
Contributor

Lujeni commented Jan 4, 2017

@Lujeni

This comment has been minimized.

Show comment
Hide comment
@Lujeni

Lujeni Jan 4, 2017

Contributor

I am not sure the module should implement this kind of option.

There is an extra_args for that

pip: name=bottle extra_args=--log /tmp/coconut.log
Contributor

Lujeni commented Jan 4, 2017

I am not sure the module should implement this kind of option.

There is an extra_args for that

pip: name=bottle extra_args=--log /tmp/coconut.log

@jimi-c jimi-c removed the plugin label Jan 4, 2017

@gundalow

This comment has been minimized.

Show comment
Hide comment
@gundalow

gundalow Jan 6, 2017

Contributor

@Lujeni Thanks for confirming the age of the option

@juju4 Does this work for you:

pip: name=bottle extra_args=--log /tmp/coconut.log

http://docs.ansible.com/ansible/pip_module.html

If so please close the ticket

Contributor

gundalow commented Jan 6, 2017

@Lujeni Thanks for confirming the age of the option

@juju4 Does this work for you:

pip: name=bottle extra_args=--log /tmp/coconut.log

http://docs.ansible.com/ansible/pip_module.html

If so please close the ticket

@juju4

This comment has been minimized.

Show comment
Hide comment
@juju4

juju4 Jan 9, 2017

it's fine for me but some people prefer native option.

juju4 commented Jan 9, 2017

it's fine for me but some people prefer native option.

@juju4 juju4 closed this Jan 9, 2017

@ansibot ansibot added feature and removed feature_idea labels Mar 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment