From 6695c8bc5e7fe4cae761eace2fd3e6e5414237a7 Mon Sep 17 00:00:00 2001 From: rubenb Date: Tue, 24 Oct 2023 07:39:20 +0200 Subject: [PATCH] remove directory linux --- linux/zabbix-agent/Debian.yaml | 2 - linux/zabbix-agent/main.yaml | 51 ------------------------ linux/zabbix-agent/zabbix_agentd.conf.j2 | 11 ----- 3 files changed, 64 deletions(-) delete mode 100644 linux/zabbix-agent/Debian.yaml delete mode 100644 linux/zabbix-agent/main.yaml delete mode 100644 linux/zabbix-agent/zabbix_agentd.conf.j2 diff --git a/linux/zabbix-agent/Debian.yaml b/linux/zabbix-agent/Debian.yaml deleted file mode 100644 index 63592bf..0000000 --- a/linux/zabbix-agent/Debian.yaml +++ /dev/null @@ -1,2 +0,0 @@ -zabbix_version: 6.4 -zabbix_repo_url: https://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian/pool/main/z/zabbix-release/zabbix-release_{{ zabbix_version }}-1%2Bdebian10_all.deb \ No newline at end of file diff --git a/linux/zabbix-agent/main.yaml b/linux/zabbix-agent/main.yaml deleted file mode 100644 index 9084c77..0000000 --- a/linux/zabbix-agent/main.yaml +++ /dev/null @@ -1,51 +0,0 @@ ---- -- hosts: "{{ hosts_servers }}" - gather_facts: no - - tasks: - - name: gather os specific variables - include_vars: "{{ item }}" - with_first_found: - - "Debian.yaml" - - - name: Download zabbix repo package - get_url: - url: "{{ zabbix_repo_url}}" - dest: /tmp/zabbix.deb - - - name: Install zabbix repo - become: yes - apt: - deb: /tmp/zabbix.deb - state: present - - - name: Install zabbix agent - become: yes - apt: - name: zabbix-agent - state: present - update_cache: yes - - - name: Stop service zabbix-agent - become: yes - service: - name: zabbix-agent - state: stopped - - - name: Remove zabbix config file - become: yes - file: - path: /etc/zabbix/zabbix_agentd.conf - state: absent - - - name: Create new zabbix config file from template - become: yes - template: - src: "zabbix_agentd.conf.j2" - dest: "/etc/zabbix/zabbix_agentd.conf" - - - name: Start service zabbix-agent - become: yes - service: - name: zabbix-agent - state: started \ No newline at end of file diff --git a/linux/zabbix-agent/zabbix_agentd.conf.j2 b/linux/zabbix-agent/zabbix_agentd.conf.j2 deleted file mode 100644 index 1d0fa18..0000000 --- a/linux/zabbix-agent/zabbix_agentd.conf.j2 +++ /dev/null @@ -1,11 +0,0 @@ -PidFile=/run/zabbix/zabbix_agentd.pid -LogFile=/var/log/zabbix/zabbix_agentd.log -LogFileSize=0 -Server=0.0.0.0/0 -ServerActive=zabbixtest.verdnatura.es:10051 -HostnameItem=system.hostname -HostMetadataItem=system.uname -HostInterfaceItem=system.hostname -RefreshActiveChecks=30 -HeartbeatFrequency=30 -Include=/etc/zabbix/zabbix_agentd.d/*.conf \ No newline at end of file