ansible/roles/snmpd/tasks/main.yml
2023-04-02 14:25:09 +02:00

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
...