copr: use the libdnf5 hack for local-image-update.yml (and centralize)

This commit is contained in:
Pavel Raiskup 2024-11-15 19:52:43 +01:00
parent 67e839a390
commit c67977feb1
3 changed files with 12 additions and 4 deletions

View file

@ -16,10 +16,7 @@
when:
- prepare_base_image is defined
- 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
- import_tasks: "libdnf5.yml"
- name: "Work-around for https://github.com/ansible/ansible/issues/84206 #2 (reload remote python modules)"
meta: reset_connection

View file

@ -0,0 +1,10 @@
---
- 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,5 +16,6 @@
ansible_python_interpreter: /usr/bin/python3
tasks:
- import_tasks: "libdnf5.yml"
- import_tasks: "create_swap_file.yml"
- import_tasks: "provision_builder_tasks.yml"