Code Monkey home page Code Monkey logo

ansible-role-zabbix_agent's Introduction

ansible-role-zabbix_agent

Install and configure Zabbix agent. Firewall and yum repository configuration is not part of this role. Check section Dependencies for example roles which you can use.

Requirements

  • Zabbix 5.4+
  • RHEL8
  • YUM repository with zabbix-agent package

Role Variables

  • zabbix_agent_packages - list of zabbix packages to install
  • zabbix_agent_config_path - path to mail zabbix agent config file
  • zabbix_agent_config_d_path - path to zabbix agent.d config directory
  • zabbix_agent_config - list of settings for zabbix_agentd.conf, example:
zabbix_agent_config:
  - option: Server
    value: zabbix-server.example.com
  • zabbix_agent_service_name - name of zabbix agent service
  • zabbix_agent_custom_files - list of custom files to copy, example:
zabbix_agent_custom_files"
  - dest: /etc/zabbix/tls/zabbix.key
    content: "{{ lookup('file', inventory_dir+'/../files/zabbix.key') }}"
    owner: zabbix
    group: zabbix
    mode: "0400"

Dependencies

Collections:

  • community.general

Roles (optional):

Example Playbook

- hosts: my_servers
  vars:
    repos_from_rpm:
      - https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-1.el8.noarch.rpm
    firewalld_ports:
      - port: 10050
        protocol: tcp
    zabbix_agent_config:
      - option: Server
        value: zabbix-server.example.com
  roles:
    - ansible-role-firewalld
    - ansible-role-repos
    - ansible-role-zabbix_agent

License

GPLv3

Author Information

Vladimir Vasilev (@vladi-k)

ansible-role-zabbix_agent's People

Contributors

vladi-k avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.