zabbix: ensure /var/run/zabbix directory exists
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
a62b48fff7
commit
216ac2359a
2 changed files with 18 additions and 0 deletions
|
@ -67,6 +67,15 @@
|
||||||
owner: zabbix
|
owner: zabbix
|
||||||
group: 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
|
- name: Ensuring we have a directory to put zabbix logs
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
|
|
@ -46,6 +46,15 @@
|
||||||
tags:
|
tags:
|
||||||
- zabbix-configuration
|
- 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/
|
- name: Set ownership on /etc/zabbix/web/
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/zabbix/web
|
path: /etc/zabbix/web
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue