aboutsummaryrefslogtreecommitdiff
path: root/roles/gonic/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gonic/tasks/main.yaml')
-rw-r--r--roles/gonic/tasks/main.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/gonic/tasks/main.yaml b/roles/gonic/tasks/main.yaml
new file mode 100644
index 0000000..1d2daa6
--- /dev/null
+++ b/roles/gonic/tasks/main.yaml
@@ -0,0 +1,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