Ajout proxy postgresql

This commit is contained in:
stef
2026-07-29 03:14:39 +00:00
parent 3dcc57ff2c
commit 82cbb26838
13 changed files with 446 additions and 70 deletions

View File

@@ -2,7 +2,7 @@
# tasks file for zabbix
- name: check OS version
debug: var=ansible_os_family
tags: always
- name: include os variables
include_vars: "{{ ansible_os_family }}.yml"
tags: always
@@ -27,6 +27,7 @@
ansible.builtin.dnf:
name: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/alma/{{ ansible_distribution_major_version }}/noarch/zabbix-release-latest-{{ zabbix_version }}.el{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
tags: always
- name: Prepare RH like
when: ansible_os_family == "RedHat"
@@ -50,6 +51,7 @@
- name: Reboot if necessary
ansible.builtin.reboot:
when: selinux.changed
tags: always
- name: Prepare Debian
when: ansible_os_family == "Debian"
@@ -60,7 +62,8 @@
- name: Mise à jour le cache des paquets
ansible.builtin.apt:
update_cache: yes
tags: always
- name: Database - Install
when: role == "db"
block:
@@ -90,6 +93,12 @@
tags:
- install_front
- name: Web - Install
ansible.builtin.include_tasks: "{{ansible_os_family}}/install-web.yml"
when: role == "web"
tags:
- install_web
- name: Install Agent
ansible.builtin.include_tasks: "{{ansible_os_family}}/install-agent2.yml"
tags: