ansible/roles/base-snmpd/tasks/main.yml
2020-08-08 20:37:28 -05:00

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