sbaerlocher / ansible.snmp Goto Github PK
View Code? Open in Web Editor NEWAnsible role for installing and Configuration SNMP v3 on installs RHEL/CentOS or Debian/Ubuntu and SNMP v2 on Windows.
License: MIT License
Ansible role for installing and Configuration SNMP v3 on installs RHEL/CentOS or Debian/Ubuntu and SNMP v2 on Windows.
License: MIT License
Hello,
This line is not installed on Proxmox installs:
Debian-snmp ALL = NOPASSWD: /usr/local/lib/snmpd/proxmox
Good job !
Playbook:
- hosts: host
gather_facts: yes
tasks:
- name: snmp
import_role:
name: sbaerlocher.snmp
tags: [ configuration, packages ]
vars:
snmp_user: "{{ group_vars_snmp_secrets.snmp_user }}"
snmp_password: "{{ group_vars_snmp_secrets.snmp_password }}"
snmp_encryption: "{{ group_vars_snmp_secrets.snmp_encryption }}"`
Result:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined
fatal: [host]: FAILED! => {
"changed": false
}
MSG:
AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined
Hi,
In the snmpd.conf.j2 file for linux, the IPv6 address should be encased in brackets to make this work properly.
Regards,
Tim
Do you have an example of how to run this playbook against a Windows server or Windows 10 machine?
Hi,
I noticed that there is no current way to override the default algorithms with a variable. In the config template, they are hard coded to SHA and AES.
These values should be replaced with variables in order to have the ability to substitute them with more or less secure options depending on needs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.