Coder Social home page Coder Social logo

ansible.snmp's Introduction

sbaerlocher

sbaerlocher github statsTop Langs

ansible.snmp's People

Contributors

aletor93 avatar sbaerlocher avatar tyneven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible.snmp's Issues

The error was: ansible.errors.AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined

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

IPv6 address needs brackets

Hi,

In the snmpd.conf.j2 file for linux, the IPv6 address should be encased in brackets to make this work properly.

Regards,
Tim

Replace hard-coded algorithms with variables

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.

createUser {{ snmp_user }} SHA {{ snmp_password }} AES {{ snmp_encryption }}

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.

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.