Because we want users to support both pip / git install methods,
refactor testing to support the testing of that.
Change-Id: I518b5e39921bde0aa68a40c30e2390afc0d886db
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>
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>
Both connection local and 127.0.0.1 have special meaning for ansible,
where will use the local filesystem vs SSH to the loopback adapter.
So, we use 127.0.0.2 to force ansible to make an SSH connection.
Change-Id: I642b1d409cbb683960b83e3582ac9fb53ffc6f81
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>