1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-27 15:43:22 +02:00
2021-12-01 19:13:34 +01:00

13 lines
318 B
YAML

---
- name: Generate random PSK key for TLS encryption
shell: openssl rand -hex 32 > /etc/zabbix/zabbix_agentd.psk
args:
creates: /etc/zabbix/zabbix_agentd.psk
tags: zabbix
- name: Restrict permission on PSK file
file: path=/etc/zabbix/zabbix_agentd.psk owner=root group=zabbix mode=0640
tags: zabbix