Service does start and terminates immediately because of missing PSK file.
2022/01/27 20:25:27.591566 Starting Zabbix Agent 2 (5.2.4)
2022/01/27 20:25:28.121859 cannot use encryption configuration: invalid TLSPSKFile configuration parameter: open C:\Zabbix\zabbix_agentd.psk: Das System kann die angegebene Datei nicht finden.
SUMMARY
The TLS-PSK file is not transfered / created
ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix_agent 1.51 but also github master!!
IMPORTANT
You fixed a bug here, unclear for me if fixed in GitHub master: https://gitlab.gtmh-telecom.com/kaungchit/ansible-zabbix-agent/-/commit/d184071ca53c6926385bc6253a4084859561a1f0 But does this fix really work also for agent2 when only zabbix_agent2_tlspskfile variables is set?
ANSIBLE VERSION
OS / ENVIRONMENT / Zabbix Version
Ubuntu 20.04
STEPS TO REPRODUCE
Just try to setup agent2 on a fresh Windows machine. Like this, nothing more.
EXPECTED RESULTS
Service permanently running.
ACTUAL RESULTS
Service does start and terminates immediately because of missing PSK file.