fix: reset connection after httpapi tasks in k8s-zabbix to prevent var bleed #60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The SAML and Matrix tasks in
ansible/roles/k8s-zabbix/tasks/main.ymlsetansible_connection: httpapiandansible_host: zabbix.conways.infoas task-level vars. Ansible's connection cache retains this state, causing subsequent roles in the same play (e.g.k8s-alerta) to connect tozabbix.conways.infoinstead of the actual host via SSH.Symptom:
postgresql-backupfails withFailed to find required executable "apt-key"because it is running against the Zabbix container rather than the k3s node.Fix
Add
meta: reset_connectionafter the httpapi task blocks ink8s-zabbix/tasks/main.ymlto flush the cached connection and restore normal SSH behaviour for subsequent roles.Affected tasks
Create new user directory with SAML IDPConfigure Zabbix Matrix Alerts(importszabbix-matrix.yml)