From: Alfredo Deza Date: Mon, 30 Nov 2015 14:45:41 +0000 (-0500) Subject: condition the role depending on the project to release X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba0d97b136c2ed418685bb73b8f1fe1ae55583bc;p=ceph-build.git condition the role depending on the project to release Signed-off-by: Alfredo Deza --- diff --git a/ansible/release.yml b/ansible/release.yml index 8f4a8d7f..e41e42c5 100644 --- a/ansible/release.yml +++ b/ansible/release.yml @@ -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'" }