From e2dff8513c0d56257441373ce61ab07a980f3fd8 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 6 Sep 2013 13:57:54 +0000 Subject: [PATCH] Use a var for the repodir in the sign-and-import playbook. --- playbooks/sign_and_import.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/playbooks/sign_and_import.yml b/playbooks/sign_and_import.yml index 46c525e4af..8831fb3a44 100644 --- a/playbooks/sign_and_import.yml +++ b/playbooks/sign_and_import.yml @@ -12,6 +12,9 @@ hosts: lockbox01.phx2.fedoraproject.org connection: local + vars: + - repodir: /mnt/fedora/app/fi-repo/6 + tasks: - name: Fail if no rpmdir provided fail: msg="No rpmdir provided" @@ -29,11 +32,11 @@ - 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 - 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 command: /bin/mv ${item} ${rpmdir}-old/ @@ -42,11 +45,11 @@ - 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 - 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 command: /bin/mv ${item} ${rpmdir}-old/