21 lines
317 B
YAML
21 lines
317 B
YAML
---
|
|
- name: Install snmpd
|
|
apt:
|
|
name: snmpd
|
|
|
|
- name: Configure snmpd
|
|
template:
|
|
src: snmpd.conf.j2
|
|
dest: /etc/snmp/snmpd.conf
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=,o=
|
|
no_log: true
|
|
notify:
|
|
- Restart snmpd
|
|
|
|
- name: Enable snmpd
|
|
systemd:
|
|
name: snmpd.service
|
|
enabled: true
|
|
...
|