From 1ca8402d4047ff683abd1e6fa6fe7c82be3fafed Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 2 Dec 2015 13:16:00 -0500 Subject: [PATCH] use the new tag_name in main.yml to compare to last_commit.stdout Signed-off-by: Alfredo Deza --- ansible/roles/ceph-deploy-release/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5