From: Alfredo Deza Date: Wed, 2 Dec 2015 18:16:00 +0000 (-0500) Subject: use the new tag_name in main.yml to compare to last_commit.stdout X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1ca8402d4047ff683abd1e6fa6fe7c82be3fafed;p=ceph-build.git use the new tag_name in main.yml to compare to last_commit.stdout Signed-off-by: Alfredo Deza --- diff --git a/ansible/roles/ceph-deploy-release/tasks/main.yml b/ansible/roles/ceph-deploy-release/tasks/main.yml index 9b20ea65..f5bd70b3 100644 --- a/ansible/roles/ceph-deploy-release/tasks/main.yml +++ b/ansible/roles/ceph-deploy-release/tasks/main.yml @@ -26,10 +26,10 @@ # that will rollback that commit, delete the local and remote tag, and force # push the new changes - include: clear_version.yml - when: (clean and version in last_commit.stdout) + when: (clean and last_commit.stdout == tag_name) # if the last commit wasn't one that we already did, then go ahead and make # the changes + tag for the release. Otherwise, just skip because it was # already done for this release - include: release.yml - when: (version not in last_commit.stdout) + when: (tag_name != last_commit.stdout)