From 86c70cd7231c60184ac849580f008261068cfc9a Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Mon, 26 Sep 2016 03:02:38 +0000 Subject: [PATCH] Ignore lock files. --- playbooks/manual/upgrade/bodhi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/upgrade/bodhi.yml b/playbooks/manual/upgrade/bodhi.yml index 78c753fe3c..8e8420394a 100644 --- a/playbooks/manual/upgrade/bodhi.yml +++ b/playbooks/manual/upgrade/bodhi.yml @@ -8,14 +8,14 @@ tasks: - 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 ignore_errors: true - name: Fail if we found that a mash was in progress fail: msg="Presence of lockfile indicates that a mash is in progress." any_errors_fatal: true - when: lockfile.rc == 0 + when: lockfile.rc != 0 - name: push packages out hosts: bodhi-backend:bodhi-backend-stg:bodhi2:bodhi2-stg