aboutsummaryrefslogtreecommitdiff
path: root/tests/run.yml
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2024-06-11 11:53:17 +0200
committerMichal Nasiadka <mnasiadka@gmail.com>2024-08-16 18:52:07 +0000
commit1d3b4f7b2de7836d41700de272dad3e385a6ac80 (patch)
treef7bbd1d5cb852196a7fe95d46179c0fc2042b406 /tests/run.yml
parentb9af83bb68ceb6f1ea7ebf38655a7ec23290c94f (diff)
downloadkolla-ansible-1d3b4f7b2de7836d41700de272dad3e385a6ac80.tar.gz
kolla-ansible-1d3b4f7b2de7836d41700de272dad3e385a6ac80.zip
Bump Ansible versions to 2.16 and 2.17
Change-Id: Ic87fb3e4c014d3090869d5631e02982829df6312
Diffstat (limited to 'tests/run.yml')
-rw-r--r--tests/run.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/run.yml b/tests/run.yml
index 275907e14..a32cec0c4 100644
--- a/tests/run.yml
+++ b/tests/run.yml
@@ -243,9 +243,18 @@
state: directory
become: true
+ - name: Install Python3.12 on RHEL derivatives
+ dnf:
+ name:
+ - python3.12
+ - python3.12-devel
+ state: latest
+ when: ansible_facts.os_family == 'RedHat'
+ become: true
+
- name: Create Kolla Ansible venv
command:
- cmd: "python3 -m venv {{ kolla_ansible_venv_path }}"
+ cmd: "{{ 'python3.12' if ansible_facts.os_family == 'RedHat' else 'python3' }} -m venv {{ kolla_ansible_venv_path }}"
creates: "{{ kolla_ansible_venv_path }}"
- name: Ensure the latest tested pip