ansible-roles/roles/zabbix_proxy/tasks/psk.yml

12 lines
316 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Generate random PSK key for TLS encryption
shell: "openssl rand -hex 32 > /etc/zabbix/zabbix_proxy.psk"
2022-04-06 11:00:07 +02:00
args:
creates: /etc/zabbix/zabbix_proxy.psk
2021-12-01 19:13:34 +01:00
tags: zabbix
- name: Restrict permission on PSK file
file: path=/etc/zabbix/zabbix_proxy.psk owner=root group=zabbix mode=0640
tags: zabbix