This commit is contained in:
2026-02-17 16:17:30 +01:00
parent aa3578e8d1
commit 5e8ca976d6
2 changed files with 13 additions and 2 deletions

View File

@@ -2,6 +2,9 @@
name: Roles name: Roles
gather_facts: false gather_facts: false
roles: roles:
- name: zabbix_proxy_service
role: zabbix_proxy_service
tags: zabbix_proxy_service
- name: init - name: init
role: init role: init
tags: init tags: init

View File

@@ -19,7 +19,7 @@
- name: Set proxy group name - name: Set proxy group name
set_fact: set_fact:
clustename: "alma10" clustename: "alma10"
- name: Allow user to start/stop zabbix-proxy with sudo without password - name: Allow user to start/stop zabbix-proxy with sudo without password
ansible.builtin.copy: ansible.builtin.copy:
dest: "/etc/sudoers.d/{{ zabbix_user }}-zabbix-proxy" dest: "/etc/sudoers.d/{{ zabbix_user }}-zabbix-proxy"
@@ -124,7 +124,15 @@
recurse: yes recurse: yes
when: zabbix_db_type == "sqlite" when: zabbix_db_type == "sqlite"
- name: Configure firewall for Zabbix Proxy
when: ansible_os_family == "RedHat"
block:
- name: Open port 10051/tcp
ansible.posix.firewalld:
port: 10051/tcp
permanent: true
state: enabled
immediate: true
# ========================================================== # ==========================================================
# MySQL setup # MySQL setup
# ========================================================== # ==========================================================