summaryrefslogtreecommitdiffstats
path: root/ansible/application.yml
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-03-19 08:45:54 +0200
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-04-01 15:08:20 +0300
commit51d7d013fbff9706910be7cbecd1720967ff486f (patch)
tree4fb191fc432f4e1e975afb66866a160ce0b447c7 /ansible/application.yml
parentdc924a0cb81e1eed9f5bf152bfba076a45fe91e1 (diff)
Improve application role testability
Remove different phases for application role as those are supposed to run after each other anyway from playbook and pre/post steps can be disabled by other means. Enable Helm override file generation customization by delegating it to separate role. Separate Helm file transfer to own module. NOTE: install.yml with all Helm commands (shell/command) is not idempotent and should be fixed with separate commit. Issue-ID: OOM-1655 Change-Id: Ib29773c4d64a0529c71c3f93c2af7265ae94059f Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'ansible/application.yml')
-rw-r--r--ansible/application.yml16
1 files changed, 5 insertions, 11 deletions
diff --git a/ansible/application.yml b/ansible/application.yml
index bbac7e5c..02c654f2 100644
--- a/ansible/application.yml
+++ b/ansible/application.yml
@@ -2,22 +2,16 @@
- name: Setup nfs server
hosts: nfs-server
roles:
- - {role: nfs, when: groups.kubernetes | length > 1 }
+ - role: nfs
+ when: groups.kubernetes | length > 1
- name: Setup nfs mounts
hosts: kubernetes:!nfs-server
roles:
- - {role: nfs, when: groups.kubernetes | length > 1 }
+ - role: nfs
+ when: groups.kubernetes | length > 1
- name: Install Helm application {{ app_name }} into offline Kubernetes cluster
hosts: infrastructure
roles:
- - role: application-install
- vars:
- phase: pre-install
- - role: application-install
- vars:
- phase: install
- - role: application-install
- vars:
- phase: post-install
+ - application