When we try to apply project.yml, the namespace does not yet exist
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
0932860a71
commit
09a12cf4b5
1 changed files with 8 additions and 7 deletions
|
@ -14,13 +14,14 @@
|
|||
failed_when: false
|
||||
changed_when: "'not found' in project_exists.stderr"
|
||||
|
||||
- name: project.yml
|
||||
when: "'not found' in project_exists.stderr"
|
||||
include_role:
|
||||
name: openshift/object
|
||||
vars:
|
||||
objectname: project.yml
|
||||
template_fullpath: "{{roles_path}}/openshift/project/templates/project.yml"
|
||||
- name: Copy project template
|
||||
template:
|
||||
src="{{roles_path}}/openshift/project/templates/project.yml"
|
||||
dest=/etc/openshift_apps/{{app}}/project.yml
|
||||
|
||||
- name: Create project
|
||||
shell: oc apply -f /etc/openshift_apps/{{app}}/project.yml
|
||||
when: project_exists.changed
|
||||
|
||||
- name: deployer.yml
|
||||
include_role:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue