Newer ansbile-lint finds "when" or "become" statements that are at the end of blocks. Ordering these before the block seems like a very logical thing to do, as we read from top-to-bottom so it's good to see if the block will execute or not. This is a no-op, and just moves the places the newer linter found. Change-Id: If4d1dc4343ea2575c64510e1829c3fe02d6c273f
Ensure pip is available
This role is intended install the requirements for the pip module on hosts.
Jobs that also wish to call pip via shell commands
directly can also use this to ensure pip is available.
However, it should be noted that calling pip is ambiguous
when supporting many platforms. On some platforms it may install the
package under the Python 2 interpreter and in others Python 3. You
should use a qualified name (pip2 or pip3) to
avoid confusion.
This role will also install wheel components sufficient
to run bdist_wheel builds or pip wheel on a
source tree.
Role Variables
Output Variables
This variable will be set to a command appropriate for general usage with the
pipmodulevirtualenv_commandargument on the host. On Python 3 hosts this will be the inbuiltvenvmodule, on Python 2 hosts thevirtualenvpackage will be installed (this is avoided on Python 3 hosts as an unnecessary dependency).