kayobe/ansible/roles/pip
Mark Goddard 43650cb966 Performance: refactor pip configuration
Currently we perform pip configuration for a list of users, including
pip_conf.yml in a loop for each user. It is slightly more efficient to
loop over each task, since individual tasks have a higher overhead than
loops.

This change refactors the code into multiple loops, with a single
include. We keep the include to allow skipping the tasks when pip
configuration is not required.

Change-Id: I698d38613f45bd03a2e51572f6e6fb69e934f614
Story: 2007993
Task: 40719
2020-08-24 10:29:02 +01:00
..
defaults Allow setting pip_proxy 2020-02-26 11:10:01 +01:00
tasks Performance: refactor pip configuration 2020-08-24 10:29:02 +01:00