Update to 2022-01-24 12:00

This commit is contained in:
Daniel Berteaud
2022-01-24 12:00:19 +01:00
parent 3157f85dad
commit 1e81d72197
20 changed files with 67 additions and 26 deletions

View File

@@ -7,3 +7,19 @@
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: zabbix
- name: Check if agent is installed
stat: path=/lib/systemd/system/zabbix-agent.service
register: zabbix_agent_installed
tags: zabbix
- name: Check if agent2 is installed
stat: path=/lib/systemd/system/zabbix-agent2.service
register: zabbix_agent2_installed
tags: zabbix
# zabbix-agent2 is only supported on Debian >= 9
- name: Disable agent2 on older Debian
set_fact: zabbix_agent2=False
when: ansible_os_family == 'Debian' and ansible_distribution_major_version is version('9', '<')
tags: zabbix