initial pass for snmpd_conf role

This commit is contained in:
Chris Hammer 2023-12-10 01:15:40 -05:00
parent cebcaa1b29
commit 0d71a1adcb
6 changed files with 18 additions and 5 deletions

View File

@ -8,7 +8,7 @@ namespace: jchristianh
name: baseos name: baseos
# The version of the collection. Must be compatible with semantic versioning # The version of the collection. Must be compatible with semantic versioning
version: 1.0.15 version: 1.0.16
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md

View File

@ -8,8 +8,8 @@ __template_header : The Zen Garden
__snmpd_conf_file : /etc/snmp/snmpd.conf __snmpd_conf_file : /etc/snmp/snmpd.conf
__snmpd_conf_version : 1.0.0 __snmpd_conf_version : 1.0.1
__snmpd_conf_revision : 22404 __snmpd_conf_revision : 231210
__snmp_pkg : net-snmp __snmp_pkg : net-snmp

View File

@ -3,4 +3,7 @@
service: service:
name : snmpd name : snmpd
state: restarted state: restarted
when: ansible_virtualization_type != "docker" when:
- ansible_virtualization_type == "docker" or
ansible_virtualization_type == "podman" or
ansible_virtualization_type == "container"

View File

@ -22,7 +22,7 @@ group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite group MyRWGroup usm readwrite
view all included .1 80 view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system # view system included .iso.org.dod.internet.mgmt.mib-2.system
# context sec.model sec.level match read write notif # context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none access MyROSystem "" any noauth exact system none none

View File

@ -0,0 +1,5 @@
---
__snmp_pkg: snmpd
...

View File

@ -0,0 +1,5 @@
---
__snmp_pkg: net-snmp
...