sbaerlocher.snmp

Ansible Role: SNMP

Build Status License Ansible Galaxy Ansible Role

Description

This Ansible role sets up and configures SNMP version 3 on RHEL/CentOS or Debian/Ubuntu, and SNMP version 2 on Windows.

Installation

To install the role, run the following command:

ansible-galaxy install sbaerlocher.snmp

Requirements

No specific requirements.

Role Variables

Here are the variables you can configure:

Variable Default Comments (type)
snmp_user snmp SNMP User
snmp_password snmp_password SNMP Password
snmp_encryption snmp_encryption SNMP Encryption
snmp_contact Optional: System Contact
snmp_location Optional: System Location
snmp_agentadress_protocol.ipvX udp / udp6 Optional: SNMP Protocol, X for ipv4 or ipv6
snmp_agentadress_adress.ipvX {{ ansible_default_ipv4.address }} / {{ ansible_default_ipv6.address }} Optional: SNMP bind address, X for ipv4 or ipv6
snmp_agentadress_port.ipvX 161 / 161 Optional: SNMP port, X for ipv4 or ipv6

Dependencies

None

Example Playbook

Here's a simple example of a playbook using this role:

- hosts: all
  roles:
    - sbaerlocher.snmp

Changelog

1.8.0

  • Added SNMP installation via module

1.7.1

  • Added support for Windows 1809

1.7.0

  • Added OS update support
  • Cleaned up syntax

1.6.0

  • Added distribution support
  • Cleaned up syntax
  • Added Proxmox support

1.5

  • Added Windows Support

1.4

  • Added IP binding support

1.3

  • Added support for becoming superuser
  • New role check
  • Support for sysContact and sysLocation

1.2

  • Added package manager for generic OS
  • Cleaned up

1.1

  • Added ArchLinux support

1.0

  • Initial release

Author

License

This project is licensed under the MIT License. You can find the full license text in the LICENSE file.

(c) 2018, Simon Bärlocher

Informazioni sul progetto

Installing and Configuration SNMP v3 on Linux and SNMP v2 on Windows.

Installa
ansible-galaxy install sbaerlocher.snmp
Licenza
mit
Download
648.7k
Proprietario
Technology Evangelist / System Engineer by @whatwedo / Project Manager @arillso / @ansible and @nuxt fan / Based in #Bern