fix syntax for environment in osbs-on-openshift role

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2017-10-05 20:58:15 +00:00
parent dacad159b7
commit 17dee9d6d3

View file

@ -7,6 +7,7 @@
register: new_project
failed_when: new_project.rc != 0 and ('already exists' not in new_project.stderr)
changed_when: new_project.rc == 0
args:
environment: "{{osbs_environment}}"
when: osbs_namespace_create
@ -22,6 +23,7 @@
--filename={{ osbs_openshift_home }}/serviceaccount-{{ item.item }}.yml
register: service_account_import
failed_when: service_account_import.rc != 0 and ('already exists' not in service_account_import.stderr)
args:
environment: "{{osbs_environment}}"
with_items: "{{ yaml_sa.results | default([]) }}"
when: item.changed
@ -49,6 +51,7 @@
--namespace={{ osbs_namespace }}
--force=true
--filename={{ osbs_openshift_home }}/rolebinding-{{ item.item.name }}.yml
args:
environment: "{{osbs_environment}}"
with_items: "{{ yaml_rolebindings.results }}"
when: item.changed
@ -66,6 +69,7 @@
--namespace={{ osbs_namespace }}
--force=true
--filename={{ osbs_openshift_home }}/resourcequota.yml
args:
environment: "{{osbs_environment}}"
when: osbs_master_max_pods is defined and osbs_master_max_pods >= 0 and yaml_resourcequotas.changed
tags:
@ -77,6 +81,7 @@
--namespace={{ osbs_namespace }}
--ignore-not-found=true
resourcequota concurrentbuilds
args:
environment: "{{osbs_environment}}"
when: osbs_master_max_pods is not defined or osbs_master_max_pods < 0
tags:
@ -97,6 +102,7 @@
--namespace={{ osbs_namespace }}
--force=true
--filename={{ osbs_openshift_home }}/limitrange.yml
args:
environment: "{{osbs_environment}}"
when: osbs_master_cpu_limitrange is defined and osbs_master_cpu_limitrange and yaml_limitrange.changed
tags:
@ -108,6 +114,7 @@
--namespace={{ osbs_namespace }}
--ignore-not-found=true
limitrange cpureq
args:
environment: "{{osbs_environment}}"
when: osbs_master_cpu_limitrange is not defined or not osbs_master_cpu_limitrange
tags:
@ -118,7 +125,6 @@
template:
src: role-osbs-custom-build.yml.j2
dest: "{{ osbs_openshift_home }}/{{ inventory_hostname }}-{{ osbs_namespace }}-role-osbs-custom-build.yml"
environment: "{{ osbs_environment }}"
register: yaml_role
tags:
- oc
@ -129,6 +135,7 @@
--namespace={{ osbs_namespace }}
--force=true
--filename={{ osbs_openshift_home }}/{{ inventory_hostname }}-{{ osbs_namespace }}-role-osbs-custom-build.yml
args:
environment: "{{ osbs_environment }}"
when: yaml_role.changed
tags: