copr tests: Fix ansible_python_interpreter on c8s

pull/5638/head
Maxwell G 2022-11-30 21:41:23 -06:00
parent a9edb2619d
commit 58e15a7ebf
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Fix improperly set ansible_python_interpreter on Stream 8
when:
- "ansible_distribution == 'CentOS'"
- "ansible_distribution_release == 'Stream'"
- "ansible_distribution_major_version == '8'"
ansible.builtin.set_fact:
ansible_python_interpreter: /usr/libexec/platform-python
- when:
# Fedora or RHEL/CentOS >= 8
# This module requires the dnf module which is not available on RHEL 7.