This commit is contained in:
2026-02-17 14:23:26 +01:00
parent e72b34da27
commit aa3578e8d1
4 changed files with 29 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
- name: Install Zabbix Proxy on Debian 13
- name: Install Zabbix Proxy on AlmaLinux 10
vars:
zabbix_version: "7.4"
zabbix_server_ip: "192.168.77.101"
@@ -20,6 +20,14 @@
set_fact:
clustename: "alma10"
- name: Allow user to start/stop zabbix-proxy with sudo without password
ansible.builtin.copy:
dest: "/etc/sudoers.d/{{ zabbix_user }}-zabbix-proxy"
content: "{{ zabbix_user }} ALL=(ALL) NOPASSWD: /bin/systemctl start zabbix-proxy, /bin/systemctl stop zabbix-proxy"
owner: root
group: root
mode: '0440'
- name: Configure global DNF proxy
ansible.builtin.lineinfile:
path: /etc/dnf/dnf.conf