From 967dc9ab91bc2ec3734fd4b1e4fffa331b78e71c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 9 Oct 2024 08:52:25 -0700 Subject: [PATCH] zabbix: drop changes to /run dir This was just added to help debug some startup problems, so we can drop it now. Also, it causes the playbook to be non idempotent (ie, this task runs and changes everytime the playbook it run, causing a lot of noise in the check/diff runs). /run/zabbix should get created by systemd, so no need to muck with it. Signed-off-by: Kevin Fenzi --- roles/zabbix/zabbix_agent/tasks/main.yml | 11 ----------- roles/zabbix/zabbix_server/tasks/install.yml | 9 --------- 2 files changed, 20 deletions(-) diff --git a/roles/zabbix/zabbix_agent/tasks/main.yml b/roles/zabbix/zabbix_agent/tasks/main.yml index 7e3202dbc5..dfbb2ed26a 100644 --- a/roles/zabbix/zabbix_agent/tasks/main.yml +++ b/roles/zabbix/zabbix_agent/tasks/main.yml @@ -85,17 +85,6 @@ tags: - zabbix_agent -- name: Set ownership on /var/run/zabbix/ - ansible.builtin.file: - path: /var/run/zabbix/ - state: directory - recurse: yes - mode: 0770 - owner: zabbix - group: zabbix - tags: - - zabbix_agent - - name: Ensuring we have a directory to put zabbix logs file: state: directory diff --git a/roles/zabbix/zabbix_server/tasks/install.yml b/roles/zabbix/zabbix_server/tasks/install.yml index 4025ebeb19..f1b758bbaf 100644 --- a/roles/zabbix/zabbix_server/tasks/install.yml +++ b/roles/zabbix/zabbix_server/tasks/install.yml @@ -46,15 +46,6 @@ 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