Update to 2020-11-19 18:00

master
Daniel Berteaud 4 years ago
parent 34d37d4bef
commit 3617fae9a1
  1. 8
      roles/zabbix_agent/tasks/facts.yml
  2. 12
      roles/zabbix_agent/tasks/install_Debian.yml
  3. 5
      roles/zabbix_agent/tasks/install_RedHat.yml
  4. 1
      roles/zabbix_agent/tasks/main.yml
  5. 7
      roles/zabbix_agent/vars/CentOS-7.yml
  6. 8
      roles/zabbix_agent/vars/CentOS-8.yml
  7. 13
      roles/zabbix_agent/vars/Debian-10.yml
  8. 13
      roles/zabbix_agent/vars/Debian-8.yml
  9. 13
      roles/zabbix_agent/vars/Debian-9.yml

@ -0,0 +1,8 @@
---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: zabbix

@ -2,17 +2,7 @@
- name: Install agent and dependencies - name: Install agent and dependencies
apt: apt:
name: name: "{{ zabbix_agent_packages }}"
- zabbix-agent
- openssl
- git
- libconfig-simple-perl
- libjson-perl
- libfile-which-perl
- smartmontools
- lm-sensors
- patch
- fping
state: "{{ zabbix_agent_update | ternary('latest','present') }}" state: "{{ zabbix_agent_update | ternary('latest','present') }}"
policy_rc_d: 101 # Prevent the daemon from starting automatically after install policy_rc_d: 101 # Prevent the daemon from starting automatically after install
tags: zabbix tags: zabbix

@ -11,10 +11,7 @@
- name: Install Zabbix Agent and additional scripts - name: Install Zabbix Agent and additional scripts
yum: yum:
name: name: "{{ zabbix_agent_packages }}"
- zabbix-agent
- zabbix-agent-addons
- openssl
state: "{{ zabbix_agent_update | ternary('latest','present') }}" state: "{{ zabbix_agent_update | ternary('latest','present') }}"
notify: restart zabbix-agent notify: restart zabbix-agent
tags: zabbix tags: zabbix

@ -1,5 +1,6 @@
--- ---
- include: facts.yml
- include: install_{{ ansible_os_family }}.yml - include: install_{{ ansible_os_family }}.yml
- include: selinux.yml - include: selinux.yml
when: ansible_selinux.status == 'enabled' when: ansible_selinux.status == 'enabled'

@ -0,0 +1,7 @@
---
zabbix_agent_packages:
- zabbix-agent
- zabbix-agent-addons
- policycoreutils-python
- openssl

@ -0,0 +1,8 @@
---
zabbix_agent_packages:
- zabbix-agent
- zabbix-agent-addons
- policycoreutils-python-utils
- openssl

@ -0,0 +1,13 @@
---
zabbix_agent_packages:
- zabbix-agent
- openssl
- git
- libconfig-simple-perl
- libjson-perl
- libfile-which-perl
- smartmontools
- lm-sensors
- patch
- fping

@ -0,0 +1,13 @@
---
zabbix_agent_packages:
- zabbix-agent
- openssl
- git
- libconfig-simple-perl
- libjson-perl
- libfile-which-perl
- smartmontools
- lm-sensors
- patch
- fping

@ -0,0 +1,13 @@
---
zabbix_agent_packages:
- zabbix-agent
- openssl
- git
- libconfig-simple-perl
- libjson-perl
- libfile-which-perl
- smartmontools
- lm-sensors
- patch
- fping
Loading…
Cancel
Save