Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
- name: Deploy lld graphs config
template: src=zabbix-lld-all-graph.j2 dest=/etc/sysconfig/zabbix-lld-all-graph mode=600 owner=zabbix
tags: zabbix

View File

@@ -0,0 +1,26 @@
---
- name: Install packages
package:
name:
- curl
- perl-Getopt-Long
- perl-Time-HiRes
tags: zabbix
- name: Install zabbix_lld_all_graph script
copy: src=zabbix_lld_all_graph dest=/usr/local/bin/zabbix_lld_all_graph mode=755
tags: zabbix
- name: Install lld_all_graph systemd units
template: src={{ item }}.j2 dest=/etc/systemd/system/{{ item }}
loop:
- zabbix-lld-all-graph.service
- zabbix-lld-all-graph.timer
register: zabbix_lld_all_graph_units
tags: zabbix
- name: Reload systemd
systemd: daemon_reload=True
when: zabbix_lld_all_graph_units.results | selectattr('changed','equalto',True) | list | length > 0
tags: zabbix

View File

@@ -0,0 +1,5 @@
---
- include: install.yml
- include: conf.yml
- include: services.yml

View File

@@ -0,0 +1,8 @@
---
- name: Handle zabbix-lld-all-graph timer
systemd:
name: zabbix-lld-all-graph.timer
state: "{{ (zabbix_lld_all_graph_api_user is defined and zabbix_lld_all_graph_api_pass is defined and zabbix_lld_all_graph_api_url is defined) | ternary('started','stopped') }}"
enabled: "{{ (zabbix_lld_all_graph_api_user is defined and zabbix_lld_all_graph_api_pass is defined and zabbix_lld_all_graph_api_url is defined) | ternary(True,False) }}"
tags: zabbix