summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/do_script.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-04-11 00:30:58 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-04-11 00:30:58 +0200
commitbc6b5cb5ad7dec5158e0005433b02a951daf9191 (patch)
treeb3125932ed468aac2b34124fe4be361a8de7fbe7 /roles/ands_kaas/tasks/do_script.yml
parent5a15f65db3dfb245919bdd534e93bd711db2eb60 (diff)
downloadands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.gz
ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.bz2
ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.tar.xz
ands-bc6b5cb5ad7dec5158e0005433b02a951daf9191.zip
Support executing custom scripts and provide mode to update just ADEI template
Diffstat (limited to 'roles/ands_kaas/tasks/do_script.yml')
-rw-r--r--roles/ands_kaas/tasks/do_script.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/ands_kaas/tasks/do_script.yml b/roles/ands_kaas/tasks/do_script.yml
new file mode 100644
index 0000000..7dc9dad
--- /dev/null
+++ b/roles/ands_kaas/tasks/do_script.yml
@@ -0,0 +1,10 @@
+---
+- name: Ensure OpenShift template directory exists
+ file: path="{{ kaas_template_path }}" state="directory" mode=0755 owner=root group=root
+
+- name: "Run OC script"
+ include_tasks: ocscript.yml
+ run_once: true
+ vars:
+ script: "{{ kaas_script | default(kaas_project_script) }}"
+