zabbix: add task to copy tls config for zabbix-agentd

Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
David Kirwan 2023-07-10 15:43:33 +01:00
parent 91c1a8cafc
commit 2f8125caf2

View file

@ -49,6 +49,16 @@
dest: "{{ zabbix_agentd }}"
notify: restart_zabbix_agent
- name: Copy zabbix-agend.conf psk config
copy:
src: "{{ item }}"
dest: /etc/zabbix/fedora.psk
owner: zabbix
group: zabbix
mode: 0600
with_fileglob:
- "{{ private }}/files/zabbix/fedora{{env_suffix}}.psk"
- name: Ensuring we have a directory to put zabbix scripts
file:
state: directory