summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-install/tasks/custom_role.yml
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2018-12-19 19:42:03 +0000
committerMichal Ptacek <m.ptacek@partner.samsung.com>2018-12-19 19:42:03 +0000
commit11e2af5b184a9260b31ab3be497cb709f3471cec (patch)
tree033209fe62bb92b19880fbf94aee6e9366ad7ab5 /ansible/roles/application-install/tasks/custom_role.yml
parent1f3bd6c49f6731ab05fef5189ab766309bc816de (diff)
Adding role for application handling
this ansible role contains application specific tasks, it is written in generic way and different helm charts can be used as application. In addition operator can provide proprietary pre_install and post_install hooks. Change-Id: Ibe4b330e5a725dde41aca9f6a59d702cfaba6f52 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'ansible/roles/application-install/tasks/custom_role.yml')
-rw-r--r--ansible/roles/application-install/tasks/custom_role.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/application-install/tasks/custom_role.yml b/ansible/roles/application-install/tasks/custom_role.yml
new file mode 100644
index 00000000..3c6237e3
--- /dev/null
+++ b/ansible/roles/application-install/tasks/custom_role.yml
@@ -0,0 +1,9 @@
+---
+# Caller fills application_custom_role variable with actual role name.
+- name: "Execute custom role {{ application_custom_role }} {{ phase }} Helm install."
+ include_role:
+ name: "{{ application_custom_role }}"
+ when:
+ - application_custom_role is defined
+ - application_custom_role is not none
+ - application_custom_role | trim != ''