Closed maximko closed 2 years ago
Strange, because this is covered by tests. And _zabbixhost tests runs fine for 6.2 (after #740).
Just to be sure, the module returns changed: true
in your case?
No, it returns "changed": false,
.
I see now. This behavior was introduced in #481. There should be the else
part in version check like @D3DeFi proposed. I will send a PR with fix and new tests specifically for this case when only write-only parameters are changed.
SUMMARY
If zabbix host is already present and has encryption enabled
tls_psk_identity
and/ortls_psk
values seems to stay the same and won't update.ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix_host
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
Zabbix 6.2 community.zabbix a3df0f1
STEPS TO REPRODUCE
Run playbook to add host and then run playbook again to generate new psk values and update host.
EXPECTED RESULTS
Host psk values will be updated.
ACTUAL RESULTS
Host psk values wasn't updated so host becomes unreachable. I have to manually look up for generated psk identity and key from config and update it using web UI.