zabbix: ensure /var/run/zabbix directory exists

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2024-02-09 11:28:00 +00:00
parent a62b48fff7
commit 216ac2359a
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
2 changed files with 18 additions and 0 deletions

View file

@ -67,6 +67,15 @@
owner: zabbix
group: zabbix
- name: Set ownership on /var/run/zabbix/
ansible.builtin.file:
path: /var/run/zabbix/
state: directory
recurse: yes
mode: 0770
owner: zabbix
group: zabbix
- name: Ensuring we have a directory to put zabbix logs
file:
state: directory

View file

@ -46,6 +46,15 @@
tags:
- zabbix-configuration
- name: Set ownership on /var/run/zabbix/
ansible.builtin.file:
path: /var/run/zabbix/
state: directory
recurse: yes
mode: 0770
owner: zabbix
group: zabbix
- name: Set ownership on /etc/zabbix/web/
ansible.builtin.file:
path: /etc/zabbix/web