This commit is contained in:
root 2024-01-11 15:00:04 +01:00
parent 4f73bd7520
commit 57738871f0
2 changed files with 9 additions and 17 deletions

View File

@ -1,8 +0,0 @@
PidFile: "/run/zabbix/zabbix_agentd.pid"
LogFile: "/var/log/zabbix/zabbix_agentd.log"
LogFileSize: "0"
Server: "127.0.0.1"
ServerActive: "s-mon.gsb.adm"
Include: "/etc/zabbix/zabbix_agentd.d/*.conf"
UrlAgent: "https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb"
PathAgent: "/tmp/zabbix-release_6.4-1+debian12_all.deb"

View File

@ -1,11 +1,11 @@
- name: Intallation paquet zabbix agent
get_url:
url: "{{ UrlAgent }}"
url: "https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb"
dest: "/tmp"
- name: Intallation paquet zabbix agent suite
apt:
deb: "{{ PathAgent }}"
deb: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
state: present
- name: Update apt
@ -25,7 +25,7 @@
- name: Rm package
file:
path: "{{ PathAgent }}"
path: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
state: absent
- name: config
@ -33,10 +33,10 @@
src: zabbix_agentd.conf.temp
dest: /etc/zabbix/zabbix_agentd.conf
vars:
PidFile: "{{ PidFile }}"
LogFile: "{{ LogFile }}"
LogFileSize: "{{ LogFileSize }}"
Server: "{{ Server }}"
ServerActive: "{{ ServerActive }}"
PidFile: "/run/zabbix/zabbix_agentd.pid"
LogFile: "/var/log/zabbix/zabbix_agentd.log"
LogFileSize: "0"
Server: "127.0.0.1"
ServerActive: "s-mon.gsb.adm"
Hostname: "{{ ansible_hostname }}"
Include: "{{ Include }}"
Include: "/etc/zabbix/zabbix_agentd.d/*.conf"