prole/infrastructure/roles/k3s/tasks/kong.yml

13 lines
427 B
YAML

---
- name: Ensure Kong is present and refreshed (common core)
ansible.builtin.shell: |
kubectl config use-context prole-k3s >/dev/null 2>&1 || true
bash {{ playbook_dir }}/../../etc/init_kong.sh -n {{ k3s_kong_namespace }} update
environment:
PROLE_MODE: k3s
KUBECONFIG: "{{ playbook_dir }}/../../prole-k3s.kubeconfig"
delegate_to: localhost
become: false
register: k3s_kong_install
run_once: true