mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 15:54:32 +00:00
18 lines
657 B
YAML
18 lines
657 B
YAML
---
|
|
|
|
- name: Wait for Kong deployment to exist (for declarative config reload)
|
|
ansible.builtin.command: k3s kubectl get deployment {{ k3s_kong_deployment }} -n {{ k3s_kong_namespace }}
|
|
register: _kong_deploy_check
|
|
changed_when: false
|
|
until: _kong_deploy_check.rc == 0
|
|
retries: 30
|
|
delay: 5
|
|
when: svc_check_kong_config_changed | default(false)
|
|
run_once: true
|
|
|
|
- name: Restart Kong to reload declarative config
|
|
ansible.builtin.command: k3s kubectl rollout restart deployment/{{ k3s_kong_deployment }} -n {{ k3s_kong_namespace }}
|
|
changed_when: true
|
|
failed_when: false
|
|
when: svc_check_kong_config_changed | default(false)
|
|
run_once: true |