mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
12 lines
316 B
YAML
12 lines
316 B
YAML
---
|
|
|
|
- name: Generate random PSK key for TLS encryption
|
|
shell: "openssl rand -hex 32 > /etc/zabbix/zabbix_proxy.psk"
|
|
args:
|
|
creates: /etc/zabbix/zabbix_proxy.psk
|
|
tags: zabbix
|
|
|
|
- name: Restrict permission on PSK file
|
|
file: path=/etc/zabbix/zabbix_proxy.psk owner=root group=zabbix mode=0640
|
|
tags: zabbix
|