diff --git a/tests/integration/targets/copr/tasks/main.yml b/tests/integration/targets/copr/tasks/main.yml index 36dd29c183..6e2e1ee8cb 100644 --- a/tests/integration/targets/copr/tasks/main.yml +++ b/tests/integration/targets/copr/tasks/main.yml @@ -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.