From 37a019dec3317e2a95dd433056126637fd4ce2cb Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Nov 22 2023 12:28:48 +0000 Subject: zabbix: Ensure zabbix log folder is writable for agent service Signed-off-by: David Kirwan --- diff --git a/roles/zabbix/zabbix_agent/tasks/main.yml b/roles/zabbix/zabbix_agent/tasks/main.yml index cc5d0e2..433f4b8 100644 --- a/roles/zabbix/zabbix_agent/tasks/main.yml +++ b/roles/zabbix/zabbix_agent/tasks/main.yml @@ -67,6 +67,14 @@ owner: zabbix group: zabbix +- name: Ensuring we have a directory to put zabbix logs + file: + state: directory + path: /var/log/zabbix + mode: 0770 + owner: zabbix + group: zabbix + - name: Adding some other conf files under zabbix_agentd.d template: src: "{{ item }}.j2"