copr-be: libdnf5 hack through include

This commit is contained in:
Pavel Raiskup 2024-11-15 19:57:57 +01:00
parent c67977feb1
commit 9356133de4
3 changed files with 4 additions and 11 deletions

View file

@ -16,11 +16,7 @@
when:
- prepare_base_image is defined
- import_tasks: "libdnf5.yml"
- name: "Work-around for https://github.com/ansible/ansible/issues/84206 #2 (reload remote python modules)"
meta: reset_connection
when:
- prepare_base_image is defined
- include_tasks: "libdnf5.yml"
when: prepare_base_image is defined
- include_tasks: "provision_builder_tasks.yml"

View file

@ -1,10 +1,6 @@
---
- name: "Work-around for https://github.com/ansible/ansible/issues/84206 #1 (install python3 libdnf5)"
shell: dnf -y install python3-libdnf5
when:
- prepare_base_image is defined
- name: "Work-around for https://github.com/ansible/ansible/issues/84206 #2 (reload remote python modules)"
meta: reset_connection
when:
- prepare_base_image is defined

View file

@ -16,6 +16,7 @@
ansible_python_interpreter: /usr/bin/python3
tasks:
- import_tasks: "libdnf5.yml"
- include_tasks: "libdnf5.yml"
when: prepare_base_image is defined
- import_tasks: "create_swap_file.yml"
- import_tasks: "provision_builder_tasks.yml"