Rework portfolio around Linux operations, Zabbix monitoring, migration validation, and ELK/Grafana log observability. Add AAP-style LVM resize workflow, Zabbix server/proxy/agent automation assets, Linux/AIX monitoring templates, and updated validation CI.
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: Validate agent mode
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- zabbix_agent_mode in ["active", "passive"]
|
||||
fail_msg: "zabbix_agent_mode must be active or passive"
|
||||
|
||||
- name: Create Zabbix agent include directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ zabbix_agent_include_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Render Zabbix agent configuration example
|
||||
ansible.builtin.template:
|
||||
src: zabbix_agentd.conf.j2
|
||||
dest: /etc/zabbix/zabbix_agentd.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Render custom OS check keys
|
||||
ansible.builtin.template:
|
||||
src: os_checks.conf.j2
|
||||
dest: "{{ zabbix_agent_include_dir }}/os_checks.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Report agent check model
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
host: "{{ zabbix_agent_hostname }}"
|
||||
mode: "{{ zabbix_agent_mode }}"
|
||||
server: "{{ zabbix_agent_server }}"
|
||||
server_active: "{{ zabbix_agent_server_active }}"
|
||||
Reference in New Issue
Block a user