mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 15:05:01 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
12
roles/zabbix_agent/tasks/psk.yml
Normal file
12
roles/zabbix_agent/tasks/psk.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user