grasshopper
grasshopper

Reputation: 4068

Ansible pip output

I'm using ansible and pip with a requirements.txt. It would be nice to know the progress of the install (with respect to which requirement lines have been processed). Is there a way to know in real time what lines have been processed?

Upvotes: 1

Views: 536

Answers (1)

ProfHase85
ProfHase85

Reputation: 12183

I assume, you are using the pip module to install packages on a target machine.

Due to ansible concepts there cannot be such a possibility: Ansible is designed to automate the tasks on remote systems in a parallel way. Just imagine your playbook concerns a group of hosts (which all should install packages): How could there be a sensible output in real time?

The only thing you can do is to capture the output with register and to print it with debug, but that would be after execution.

Upvotes: 2

Related Questions