forked from infra/ansible
Make snmpd less verbose.
This commit is contained in:
parent
8405d98926
commit
b00e335278
11
roles/common/files/snmpd
Normal file
11
roles/common/files/snmpd
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# This file controls the activity of snmpd
|
||||||
|
|
||||||
|
# Don't load any MIBs by default.
|
||||||
|
# You might comment this lines once you have the MIBs downloaded.
|
||||||
|
export MIBS=
|
||||||
|
|
||||||
|
# snmpd control (yes means start daemon).
|
||||||
|
SNMPDRUN=yes
|
||||||
|
|
||||||
|
# snmpd options (use syslog, close stdin/out/err).
|
||||||
|
SNMPDOPTS='-LSed -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'
|
@ -4,6 +4,11 @@
|
|||||||
apt: name=snmpd state=present
|
apt: name=snmpd state=present
|
||||||
tags: snmp
|
tags: snmp
|
||||||
|
|
||||||
|
- name: Make snmpd less verbose
|
||||||
|
copy: src=snmpd dest=/etc/default/snmpd
|
||||||
|
notify: Restart snmpd
|
||||||
|
tags: snmp
|
||||||
|
|
||||||
- name: Configure snmpd
|
- name: Configure snmpd
|
||||||
template: src=snmpd.conf.j2 dest=/etc/snmp/snmpd.conf
|
template: src=snmpd.conf.j2 dest=/etc/snmp/snmpd.conf
|
||||||
notify: Restart snmpd
|
notify: Restart snmpd
|
||||||
|
Loading…
Reference in New Issue
Block a user