mise à jour 2eme du nom zabbix cli
This commit is contained in:
parent
efcbd3d0cf
commit
4f73bd7520
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user