Added "Managed by Ansible" comment

This commit is contained in:
2025-08-24 15:49:33 +02:00
parent 41cfb78ba0
commit 93c8a6e4b9

View File

@@ -26,6 +26,8 @@
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/zabbix/zabbix_proxy.d/custom.conf dest: /etc/zabbix/zabbix_proxy.d/custom.conf
content: | content: |
## Managed by Ansible - do not edit manually ##
## Changes will be overwritten ##
DBName=/tmp/zabbix_proxy DBName=/tmp/zabbix_proxy
StartPollers=2 StartPollers=2
StartPreprocessors=1 StartPreprocessors=1
@@ -63,6 +65,8 @@
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/zabbix/zabbix_agent2.d/custom.conf dest: /etc/zabbix/zabbix_agent2.d/custom.conf
content: | content: |
## Managed by Ansible - do not edit manually ##
## Changes will be overwritten ##
Hostname={{ ansible_facts.hostname }} Hostname={{ ansible_facts.hostname }}
Server={{ hostvars['zabbix-proxy']['ansible_host'] }},{{ hostvars['raspberry-pi']['ansible_host'] }} Server={{ hostvars['zabbix-proxy']['ansible_host'] }},{{ hostvars['raspberry-pi']['ansible_host'] }}
ServerActive={{ hostvars['zabbix-proxy']['ansible_host'] }};{{ hostvars['raspberry-pi']['ansible_host'] }} ServerActive={{ hostvars['zabbix-proxy']['ansible_host'] }};{{ hostvars['raspberry-pi']['ansible_host'] }}
@@ -72,6 +76,8 @@
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/zabbix/zabbix_agent2.d/userparams.conf dest: /etc/zabbix/zabbix_agent2.d/userparams.conf
content: | content: |
## Managed by Ansible - do not edit manually ##
## Changes will be overwritten ##
AllowKey=system.run[*] AllowKey=system.run[*]
notify: restart zabbix-agent2 notify: restart zabbix-agent2