Ignore lock files.
This commit is contained in:
parent
2e580970b0
commit
86c70cd723
1 changed files with 2 additions and 2 deletions
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check for the existance of a mashing lock.
|
- name: Check for the existance of a mashing lock.
|
||||||
shell: "/bin/true || ls -alh /mnt/koji/mash/updates/MASHING*"
|
shell: "ls -alh /mnt/koji/mash/updates/MASHING*"
|
||||||
register: lockfile
|
register: lockfile
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Fail if we found that a mash was in progress
|
- name: Fail if we found that a mash was in progress
|
||||||
fail: msg="Presence of lockfile indicates that a mash is in progress."
|
fail: msg="Presence of lockfile indicates that a mash is in progress."
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
when: lockfile.rc == 0
|
when: lockfile.rc != 0
|
||||||
|
|
||||||
- name: push packages out
|
- name: push packages out
|
||||||
hosts: bodhi-backend:bodhi-backend-stg:bodhi2:bodhi2-stg
|
hosts: bodhi-backend:bodhi-backend-stg:bodhi2:bodhi2-stg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue