copr: use the libdnf5 hack for local-image-update.yml (and centralize)
This commit is contained in:
parent
67e839a390
commit
c67977feb1
3 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
10
roles/copr/backend/files/provision/libdnf5.yml
Normal file
10
roles/copr/backend/files/provision/libdnf5.yml
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue