Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.45 KB

File metadata and controls

70 lines (49 loc) · 1.45 KB

Ansible Playbook: inventory2librenms

license

Description

Ansible Playbook that writes the whole invenotry into Librenms.

Playbook Variables

Variable Default Comments (type)
inventory2librenms_url URL of your Librenms instance
inventory2librenms_token API Key of your Librenms instance
inventory2librenms_body Contents of the post body see examples for snmp versions.

Example

SNMP v1

inventory2librenms_body:
  hostname: "{{ item }}"
  version: "v1"
  community: "public"

SNMP v2

inventory2librenms_body:
  hostname: "{{ item }}"
  version: "v2"
  community: "public"

SNMP v3

inventory2librenms_body:
  authlevel: authPriv
  authname: "{{ snmp_user }}"
  authpass: "{{ snmp_password }}"
  authalgo: "SHA"
  cryptopass: "{{ snmp_encryption }}"
  cryptoalgo: "DES"
  hostname: "{{ item }}"
  version: "v3"

1.1.0

  • fix hostname is lower

1.0.0

  • inital role

Author

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2018, Simon Bärlocher (c) 2018, ITIGO AG