mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-25 14:31:56 +08:00
Default to no values
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
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}})
|
||||
template: src={{roles_path}}/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}
|
||||
when: template is defined
|
||||
when: template != ''
|
||||
run_once: true
|
||||
|
||||
- name: Copy template {{template_fullpath}} to temporary file ({{tmpfile.path}})
|
||||
template: src={{template_fullpath}} dest={{tmpfile.path}}
|
||||
when: template_fullpath is defined
|
||||
when: template_fullpath != ''
|
||||
run_once: true
|
||||
|
||||
- name: Copy file {{file}} to temporary file ({{tmpfile.path}})
|
||||
copy: src={{roles_path}}/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}
|
||||
when: file is defined
|
||||
when: file != ''
|
||||
run_once: true
|
||||
|
||||
- name: Call `oc apply` on the copied file
|
||||
|
||||
Reference in New Issue
Block a user