diff --git a/zabbix-server/files/snmp.conf b/zabbix-server/files/snmp.conf new file mode 100644 index 0000000000000000000000000000000000000000..a9df185ffb1f3e15680dde5db414cd14b63b3b8b --- /dev/null +++ b/zabbix-server/files/snmp.conf @@ -0,0 +1,5 @@ +# +# As the snmp packages come without MIB files due to license reasons, loading +# of MIBs is disabled by default. If you added the MIBs you can reenable +# loaging them by commenting out the following line. +#mibs: diff --git a/zabbix-server/tasks/snmp.yml b/zabbix-server/tasks/snmp.yml new file mode 100644 index 0000000000000000000000000000000000000000..f4791c4877e21b5100701f5ef31f7388c023379d --- /dev/null +++ b/zabbix-server/tasks/snmp.yml @@ -0,0 +1,22 @@ +--- +- name: ensure snmp software is installed + apt: name={{ item }} state=latest + with_items: + - snmp + - snmp-mibs-downloader + tags: + - snmp + - software + +- name: ensure the correct snmp.conf is present + copy: src=snmp.conf dest=/etc/snmp/snmp.conf + tags: + - snmp + - config + +- name: ensure the snmp MIB libs are present + command: download-mibsmibs + tags: + - snmp + +