]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use the new tag_name in main.yml to compare to last_commit.stdout
authorAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 18:16:00 +0000 (13:16 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 18:16:00 +0000 (13:16 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ceph-deploy-release/tasks/main.yml

index 9b20ea6509416f20a20267e39ba06b0753cdc74d..f5bd70b33d24c07b2b857cdceb101292a1accfe8 100644 (file)
   # 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)