Merge "Install python3 for the latest version of rally"

This commit is contained in:
Zuul 2020-11-30 06:59:20 +00:00 committed by Gerrit Code Review
commit e1b1e9f0a3
2 changed files with 4 additions and 2 deletions

View File

@ -18,9 +18,11 @@
- openssl-devel
- policycoreutils-python
- python-devel
- python3
state: present
become: true
when: ansible_distribution_major_version < '8'
ignore_errors: yes
- name: Install dependencies for RHEL8
yum:
@ -142,4 +144,4 @@
insertafter: "self.validate_refresh"
line: " v.Optional('regex',default=''): v.All(str),"
when: collectd_prometheus
when: collectd_prometheus

View File

@ -4,7 +4,7 @@
#
- name: Create rally virtualenv
command: virtualenv {{ rally_venv }} creates={{ rally_venv }}
command: virtualenv --python=python3 {{ rally_venv }} creates={{ rally_venv }}
- name: Rally Add browbeat to Python path
shell: echo 'export PYTHONPATH=$PYTHONPATH:{{ browbeat_path }}' >> {{ rally_venv }}/bin/activate