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

@@ -17,6 +17,15 @@
- name: Set proxy name
set_fact:
clustename: "debian13"
- 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: Show default IP
ansible.builtin.debug: