]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
condition the role depending on the project to release
authorAlfredo Deza <adeza@redhat.com>
Mon, 30 Nov 2015 14:45:41 +0000 (09:45 -0500)
committerAlfredo Deza <adeza@redhat.com>
Mon, 30 Nov 2015 14:45:41 +0000 (09:45 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/release.yml

index 8f4a8d7ff2b395d910f2687696ceb20d4f3a2f9c..e41e42c5a576982793784c89fd197db93998ccc3 100644 (file)
@@ -1,15 +1,16 @@
 ---
 
 - hosts: localhost
-  roles:
-    - ceph-release
   vars:
     # should be passed in the CLI like `--extra-vars "version=1.23.45 branch=master"`
     version: 0-dev # e.g. 0.78
     branch: master # any existing branch on Github
     release: stable # stable, development, or rc are valid options
+    project: "ceph"
     clean: true # if re-doing a deployment this deletes the remote branch in Jenkin's git repo
     force_dch: false # if coming from a rc and wanting to release a stable you need to force dch
     debemail: adeza@redhat.com
     debfullname: "Alfredo Deza"
-
+  roles:
+    - { role: ceph-release, when: "project == 'ceph'" }
+    - { role: ceph-deploy-release, when: "project == 'ceph-deploy'" }