ansible/roles/snmpd/tasks/main.yml

22 lines
317 B
YAML
Raw Normal View History

2023-04-02 14:25:09 +02:00
---
- 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
...