mise à jour 2eme du nom zabbix cli

This commit is contained in:
Jimmy Chevanne 2024-01-11 11:51:32 +01:00
parent efcbd3d0cf
commit 4f73bd7520
3 changed files with 24 additions and 17 deletions

View File

@ -2,5 +2,7 @@ PidFile: "/run/zabbix/zabbix_agentd.pid"
LogFile: "/var/log/zabbix/zabbix_agentd.log"
LogFileSize: "0"
Server: "127.0.0.1"
ServerActive: "192.168.99.106"
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,12 +1,5 @@
- name: config
template:
src: zabbix_agentd.conf.temp
dest: /etc/zabbix/zabbix_agentd.conf
vars:
PidFile: "{{ PidFile }}"
LogFile: "{{ LogFile }}"
LogFileSize: "{{ LogFileSize }}"
Server: "{{ Server }}"
ServerActive: "{{ ServerActive }}"
Hostname: "{{ ansible_hostname }}"
Include: "{{ Include }}"
- name: restart zabbix agent
service:
name: zabbix-agent
state: restarted
enabled: yes

View File

@ -1,11 +1,11 @@
- name: Intallation paquet zabbix agent
get_url:
url: "https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb"
dest: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
url: "{{ UrlAgent }}"
dest: "/tmp"
- name: Intallation paquet zabbix agent suite
apt:
deb: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
deb: "{{ PathAgent }}"
state: present
- name: Update apt
@ -25,6 +25,18 @@
- name: Rm package
file:
path: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
path: "{{ PathAgent }}"
state: absent
- name: config
template:
src: zabbix_agentd.conf.temp
dest: /etc/zabbix/zabbix_agentd.conf
vars:
PidFile: "{{ PidFile }}"
LogFile: "{{ LogFile }}"
LogFileSize: "{{ LogFileSize }}"
Server: "{{ Server }}"
ServerActive: "{{ ServerActive }}"
Hostname: "{{ ansible_hostname }}"
Include: "{{ Include }}"