Use a var for the repodir in the sign-and-import playbook.
This commit is contained in:
parent
de589ffcf9
commit
e2dff8513c
1 changed files with 7 additions and 4 deletions
|
@ -12,6 +12,9 @@
|
||||||
hosts: lockbox01.phx2.fedoraproject.org
|
hosts: lockbox01.phx2.fedoraproject.org
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
|
vars:
|
||||||
|
- repodir: /mnt/fedora/app/fi-repo/6
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Fail if no rpmdir provided
|
- name: Fail if no rpmdir provided
|
||||||
fail: msg="No rpmdir provided"
|
fail: msg="No rpmdir provided"
|
||||||
|
@ -29,11 +32,11 @@
|
||||||
|
|
||||||
|
|
||||||
- name: copy the source rpms to the SRPMS dir
|
- name: copy the source rpms to the SRPMS dir
|
||||||
copy: src=${item} dest=/mnt/fedora/app/fi-repo/6/SRPMS/
|
copy: src=${item} dest=${repodir}/SRPMS/
|
||||||
with_fileglob: ${rpmdir}/*.src.rpm
|
with_fileglob: ${rpmdir}/*.src.rpm
|
||||||
|
|
||||||
- name: Run createrepo on the srpm dir
|
- name: Run createrepo on the srpm dir
|
||||||
command: createrepo --update /mnt/fedora/app/fi-repo/6/SRPMS/
|
command: createrepo --update ${repodir}/SRPMS/
|
||||||
|
|
||||||
- name: move processed srpms out to ${rpmdir}-old
|
- name: move processed srpms out to ${rpmdir}-old
|
||||||
command: /bin/mv ${item} ${rpmdir}-old/
|
command: /bin/mv ${item} ${rpmdir}-old/
|
||||||
|
@ -42,11 +45,11 @@
|
||||||
|
|
||||||
|
|
||||||
- name: copy the binary rpms to the x86_64 dir
|
- name: copy the binary rpms to the x86_64 dir
|
||||||
copy: src=${item} dest=/mnt/fedora/app/fi-repo/6/x86_64/
|
copy: src=${item} dest=${repodir}/x86_64/
|
||||||
with_fileglob: ${rpmdir}/*.rpm
|
with_fileglob: ${rpmdir}/*.rpm
|
||||||
|
|
||||||
- name: Run createrepo on the x86_64 dir
|
- name: Run createrepo on the x86_64 dir
|
||||||
command: createrepo --update /mnt/fedora/app/fi-repo/6/x86_64/
|
command: createrepo --update ${repodir}/x86_64/
|
||||||
|
|
||||||
- name: move processed rpms out to ${rpmdir}-old
|
- name: move processed rpms out to ${rpmdir}-old
|
||||||
command: /bin/mv ${item} ${rpmdir}-old/
|
command: /bin/mv ${item} ${rpmdir}-old/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue