Use a more ansible-y syntax rather than jinja's
This commit is contained in:
parent
c664301bd7
commit
250c7e921c
1 changed files with 2 additions and 4 deletions
|
@ -43,12 +43,11 @@
|
||||||
- name: Run createrepo on the srpm dir
|
- name: Run createrepo on the srpm dir
|
||||||
command: createrepo --update {{ repodir }}/SRPMS/
|
command: createrepo --update {{ repodir }}/SRPMS/
|
||||||
|
|
||||||
{% if testing %}
|
|
||||||
- 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/
|
||||||
|
when: not testing
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.src.rpm"
|
- "{{ rpmdir }}/*.src.rpm"
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
- name: copy the binary rpms to the x86_64 dir of {{ repodir }}
|
- name: copy the binary rpms to the x86_64 dir of {{ repodir }}
|
||||||
copy: src={{ item }} dest={{ repodir }}/x86_64/
|
copy: src={{ item }} dest={{ repodir }}/x86_64/
|
||||||
|
@ -58,9 +57,8 @@
|
||||||
- name: Run createrepo on the x86_64 dir
|
- name: Run createrepo on the x86_64 dir
|
||||||
command: createrepo --update {{ repodir }}/x86_64/
|
command: createrepo --update {{ repodir }}/x86_64/
|
||||||
|
|
||||||
{% if testing %}
|
|
||||||
- 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/
|
||||||
|
when: not testing
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.rpm"
|
- "{{ rpmdir }}/*.rpm"
|
||||||
{% endif %}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue