22 lines
424 B
YAML
22 lines
424 B
YAML
|
#!/usr/bin/ansible-playbook
|
||
|
# vim:ft=ansible:
|
||
|
---
|
||
|
- name: Install snmpd
|
||
|
block:
|
||
|
- name: Install snmpd
|
||
|
apt:
|
||
|
name:
|
||
|
- snmpd
|
||
|
- name: Template out config
|
||
|
template:
|
||
|
src: snmpd.conf
|
||
|
dest: /etc/snmp/snmpd.conf
|
||
|
mode: "0600"
|
||
|
notify: restart snmpd
|
||
|
- name: Enable snmpd
|
||
|
systemd:
|
||
|
name: snmpd
|
||
|
enabled: yes
|
||
|
state: started
|
||
|
become: yes
|