]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
builder.yml: update to use virtualenv
authorDan Mick <dan.mick@redhat.com>
Wed, 1 Oct 2025 02:20:44 +0000 (19:20 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 7 Oct 2025 22:33:56 +0000 (15:33 -0700)
commit9f5ddb8a90c1688189e83302c8eec5798f859a2e
tree11bf471a8a31dc6d1f6586296c61c8c60c048197
parentb096b5d39d638f96d03ecae07bdfae8eabac245f
builder.yml: update to use virtualenv

pip/python no longer like to install modules in global dirs.
Create a virtualenv and use it when running the jenkins_node
module.

This is done by adding a second play to start that creates the
virtualenv and sets ansible_python_interpreter to the interpreter
in the venv.  That means it affects the following play in the
playbook, which is the original playbook.  So technically the
virtualenv python is used for all plays.

Also, remove the #!/usr/bin/python3 from library/jenkins_node,
which was doing no good, but caused havoc by execing the non-venv
python when running the module.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ansible/examples/builder.yml
ansible/library/jenkins_node