diff --git a/playbooks/sign_and_import.yml b/playbooks/sign_and_import.yml index 8a8745ce26..738817376b 100644 --- a/playbooks/sign_and_import.yml +++ b/playbooks/sign_and_import.yml @@ -43,12 +43,11 @@ - name: Run createrepo on the srpm dir command: createrepo --update {{ repodir }}/SRPMS/ - {% if testing %} - name: move processed srpms out to {{ rpmdir }}-old command: /bin/mv {{ item }} {{ rpmdir }}-old/ + when: not testing with_fileglob: - "{{ rpmdir }}/*.src.rpm" - {% endif %} - name: copy the binary rpms to the x86_64 dir of {{ repodir }} copy: src={{ item }} dest={{ repodir }}/x86_64/ @@ -58,9 +57,8 @@ - name: Run createrepo on the x86_64 dir command: createrepo --update {{ repodir }}/x86_64/ - {% if testing %} - name: move processed rpms out to {{ rpmdir }}-old command: /bin/mv {{ item }} {{ rpmdir }}-old/ + when: not testing with_fileglob: - "{{ rpmdir }}/*.rpm" - {% endif %}