From 3acfa5b4de30bd529e5f162f9d5f336f4cc7a06f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 16 Apr 2018 21:30:17 +0000 Subject: [PATCH] vars {} makes it a global variable. Let's not do that Signed-off-by: Patrick Uiterwijk --- playbooks/openshift-apps/bodhi.yml | 32 ++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/playbooks/openshift-apps/bodhi.yml b/playbooks/openshift-apps/bodhi.yml index 08fc47101d..99ea55d83c 100644 --- a/playbooks/openshift-apps/bodhi.yml +++ b/playbooks/openshift-apps/bodhi.yml @@ -38,11 +38,27 @@ key: fedmsg-bodhi.crt privatefile: fedmsg-certs/keys/bodhi-bodhi03.fedoraproject.org.crt when: env != "staging" - - { role: openshift/object, vars: {app: bodhi, file: imagestream.yml }} - - { role: openshift/object, vars: {app: bodhi, template: buildconfig.yml }} - - { role: openshift/start-build, vars: {app: bodhi, name: bodhi-web }} - - { role: openshift/object, vars: {app: bodhi, template_fullpath: "{{roles_path}}/bodhi2/base/templates/configmap.yml" }} - - { role: openshift/object, vars: {app: bodhi, file: service.yml }} - - { role: openshift/object, vars: {app: bodhi, template: route.yml }} - - { role: openshift/object, vars: {app: bodhi, file: deploymentconfig.yml }} - - { role: openshift/rollout, vars: {app: bodhi, name: bodhi-web }} + - role: openshift/object + app: bodhi + file: imagestream.yml + - role: openshift/object + app: bodhi + template: buildconfig.yml + - role: openshift/start-build + app: bodhi + name: bodhi-web + - role: openshift/object + app: bodhi + template_fullpath: "{{roles_path}}/bodhi2/base/templates/configmap.yml" + - role: openshift/object + app: bodhi + file: service.yml + - role: openshift/object + app: bodhi + template: route.yml + - role: openshift/object + app: bodhi + file: deploymentconfig.yml + - role: openshift/rollout + app: bodhi + name: bodhi-web