Default to no values
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
8746f0777c
commit
bf33f4c83f
2 changed files with 7 additions and 3 deletions
4
roles/openshift/object/defaults/main.yml
Normal file
4
roles/openshift/object/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
--
|
||||||
|
template: ''
|
||||||
|
template_fullpath: ''
|
||||||
|
file: ''
|
|
@ -5,17 +5,17 @@
|
||||||
|
|
||||||
- name: Copy template {{template}} to temporary file ({{tmpfile.path}})
|
- name: Copy template {{template}} to temporary file ({{tmpfile.path}})
|
||||||
template: src={{roles_path}}/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}
|
template: src={{roles_path}}/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}
|
||||||
when: template is defined
|
when: template != ''
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Copy template {{template_fullpath}} to temporary file ({{tmpfile.path}})
|
- name: Copy template {{template_fullpath}} to temporary file ({{tmpfile.path}})
|
||||||
template: src={{template_fullpath}} dest={{tmpfile.path}}
|
template: src={{template_fullpath}} dest={{tmpfile.path}}
|
||||||
when: template_fullpath is defined
|
when: template_fullpath != ''
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Copy file {{file}} to temporary file ({{tmpfile.path}})
|
- name: Copy file {{file}} to temporary file ({{tmpfile.path}})
|
||||||
copy: src={{roles_path}}/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}
|
copy: src={{roles_path}}/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}
|
||||||
when: file is defined
|
when: file != ''
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Call `oc apply` on the copied file
|
- name: Call `oc apply` on the copied file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue