Ajout role Zabbix-cli + ajout des agents dans les srv
This commit is contained in:
29
roles/zabbix-cli/tasks/main.yml
Normal file
29
roles/zabbix-cli/tasks/main.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
- 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"
|
||||
|
||||
- name: Intallation paquet zabbix agent suite
|
||||
apt:
|
||||
deb: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
|
||||
state: present
|
||||
|
||||
- name: Update apt
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Intallation Zabbix agent
|
||||
apt:
|
||||
name: zabbix-agent
|
||||
state: present
|
||||
|
||||
- name: Enable Zabbix agent service
|
||||
systemd:
|
||||
name: zabbix-agent
|
||||
enabled: yes
|
||||
|
||||
- name: Rm package
|
||||
file:
|
||||
path: "/tmp/zabbix-release_6.4-1+debian12_all.deb"
|
||||
state: absent
|
||||
|
Reference in New Issue
Block a user