Ajout ubuntu
This commit is contained in:
+1
-2
@@ -1,9 +1,8 @@
|
||||
---
|
||||
# defaults file for roles/zabbix-server
|
||||
zabbix_phpfpm_version: 8.4
|
||||
zabbix_phpfpm_version: 8.3
|
||||
zabbix_http_port: 8080
|
||||
zabbix_server_version: 7.4
|
||||
zabbix_debian_version: 13
|
||||
zabbix_postgresql_database: zabbixbdd
|
||||
zabbix_postgresql_username: zabbix
|
||||
zabbix_postgresql_password: zabazabiz
|
||||
|
||||
+6
-5
@@ -2,24 +2,25 @@
|
||||
# tasks file for roles/zabbix-server
|
||||
- name: "Téléchargement fichier .deb"
|
||||
ansible.builtin.get_url:
|
||||
url: "https://repo.zabbix.com/zabbix/{{ zabbix_server_version }}/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian{{ zabbix_debian_version }}_all.deb"
|
||||
dest: "/root/debian{{ zabbix_debian_version }}_all.deb"
|
||||
url: "https://repo.zabbix.com/zabbix/{{ zabbix_server_version }}/release/{{ ansible_distribution|lower }}/pool/main/z/zabbix-release/zabbix-release_latest+{{ ansible_distribution|lower }}{{ ansible_distribution_version }}_all.deb"
|
||||
dest: "/root/{{ ansible_distribution|lower }}{{ ansible_distribution_version }}_all.deb"
|
||||
|
||||
- name: "Installation fichier DPKG"
|
||||
ansible.builtin.apt:
|
||||
deb: "/root/debian{{ zabbix_debian_version }}_all.deb"
|
||||
deb: "/root/{{ ansible_distribution|lower }}{{ ansible_distribution_version }}_all.deb"
|
||||
|
||||
- name: "Mise à jour repository APT et install packages"
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- acl
|
||||
- nginx
|
||||
- zabbix-server-pgsql
|
||||
- zabbix-frontend-php
|
||||
- "php{{ zabbix_phpfpm_version }}-pgsql"
|
||||
- zabbix-nginx-conf
|
||||
- zabbix-sql-scripts
|
||||
- zabbix-agent
|
||||
- zabbix-agent2
|
||||
- postgresql
|
||||
- sudo
|
||||
- python3-psycopg2
|
||||
@@ -89,4 +90,4 @@
|
||||
- nginx
|
||||
- "php{{ zabbix_phpfpm_version }}-fpm"
|
||||
- zabbix-server
|
||||
- zabbix-agent
|
||||
- zabbix-agent2
|
||||
|
||||
Reference in New Issue
Block a user