openqa: create repodata for scratchrepo

Whoops.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-04-30 12:35:00 -07:00
parent 255ce6ebad
commit ba8c7b49ff
2 changed files with 16 additions and 4 deletions

View file

@ -109,9 +109,9 @@
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
when: "openqa_scratch is defined"
- name: Install Koji CLI client
- name: Install Koji CLI client and createrepo
package:
name: koji
name: ["koji", "createrepo"]
state: present
tags:
- packages
@ -124,6 +124,12 @@
loop: "{{ openqa_scratch|flatten(levels=1) }}"
when: "openqa_scratch is defined"
- name: Write repodata
command: "createrepo ."
args:
chdir: /var/tmp/scratchrepo
when: "openqa_scratch is defined"
- name: Write scratch build repo config
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
when: "openqa_scratch is defined"

View file

@ -36,9 +36,9 @@
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
when: "openqa_scratch is defined"
- name: Install Koji CLI client
- name: Install Koji CLI client and createrepo
package:
name: koji
name: ["koji", "createrepo"]
state: present
tags:
- packages
@ -51,6 +51,12 @@
loop: "{{ openqa_scratch|flatten(levels=1) }}"
when: "openqa_scratch is defined"
- name: Write repodata
command: "createrepo ."
args:
chdir: /var/tmp/scratchrepo
when: "openqa_scratch is defined"
- name: Write scratch build repo config
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
when: "openqa_scratch is defined"