There is no need to loop over the list of packages, this is actually
slower.
Change-Id: I0efdfbe3ba066ccab4bf3e3ff661bcba088984e1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Moving forward, we'll only support shade under python3. While shade
still supports python2, this role will only support python3.
Users still have the ability to install python2, but will need to do
more work to make that happen.
Change-Id: I2970b76db9dc6badb9e720e5795abcda761fb2d4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Expose shade_pip_executable to allow user to specific version of
pip.
Change-Id: I2d8c5316cd5c891bda5fa3c3dc2de813c8a5e49b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We can clean up our install tasks by using an include.
Change-Id: Ic206d855bc51db07d5f64717e384a98b710efa70
Depends-On: https://review.openstack.org/560232
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Stop using /opt folder to store the location of git checkout. We don't
actually need to be root user to do that.
Change-Id: Ifc530e66ec886d094c5a3b3cd6078270439cd301
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
It is possible, in the case of zuulv3, git repos are already on disk.
As a results, we don't want to update them.
Change-Id: I902e287e00c231f36935c1cea212f043e3bca6ef
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This allows the user to choose which version of python to use in the
virtualenv.
Fix testing to use ansible_connection=ssh
Change-Id: Id2505dfd949e72f603f3db692a7dbc59912b1b59
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Our previous way of doing becomes with include is no longer supported
by ansible. Switch to the supported way of handling becomes.
Change-Id: Ia213305fd874251b7abc6ee12c7058a7b459b61b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Using the omit template, we can now better control which pip options
we set.
Change-Id: I8ef6c7bad92c5cae0ac00945e6ab94d9322c0097
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
These are dependencies our role requires. As such, they should be
installed by the user.
Change-Id: I71275b1de839834e9217534229b6e50aa66934bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
A lot of this code is based on ansible-role-diskimage-builder.
Change-Id: I8012688ee16635d743d1af9aa7b43f084e5e9237
Signed-off-by: Paul Belanger <pabelanger@redhat.com>