aboutsummaryrefslogtreecommitdiff
path: root/roles/gonic/tasks/main.yaml
blob: 1d2daa6e30ff85091915a521c7af314d8eb4f003 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Deploy Gonic
  kubernetes.core.helm:
    name: gonic
    chart_ref: "{{ lookup('env', 'PWD') }}/roles/gonic/files/gonic"
    namespace: default
    state: "{%- if gonic.enabled -%} present {%- else -%} absent {%- endif -%}"
    values:
      replicas: "{{ gonic.replicas }}"
      port: "{{ gonic.port }}"
      image: "{{ gonic.image }}"
      version: "{{ gonic.version }}"
      nfs:
        server: "{{ nfs.server }}"
        path: "{{ nfs.path }}"
  delegate_to: localhost
  run_once: true