openreplay/scripts/helm/roles/openreplay/tasks/install-apps.yaml
2021-05-18 20:58:37 +02:00

26 lines
960 B
YAML

# vim: set ft=yaml.ansible :
---
- name: Installing specific app
shell: |
override=''
[[ -f /tmp/'{{ app_name }}.yaml' ]] && override='-f /tmp/{{ app_name }}.yaml' || true
helm upgrade --install -n app "{{ app_name }}" -f app/{{ app_name }}.yaml ${override} ./app/openreplay --create-namespace
args:
executable: /bin/bash
when: app_name|length > 0
tags: app
- name: Installing OpenReplay core applications
shell: |
override=''
[[ -f /tmp/'{{ item|basename }}' ]] && override='-f /tmp/{{ item|basename }}' || true
helm upgrade --install -n app "{{ (item|basename).split ('.') | first }}" -f "{{ item }}" ${override} ./app/openreplay --create-namespace
args:
executable: /bin/bash
with_fileglob:
- "app/*.yaml"
when: app_name|length == 0
tags: apps
- name: Installing Proxy
shell: |
helm upgrade --install -n nginx-ingress nginx-ingress "./nginx-ingress/nginx-ingress" --create-namespace
tags: nginx