diff --git a/galaxy.yml b/galaxy.yml index a9710de..1dbe642 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: jchristianh name: baseos # 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 readme: README.md diff --git a/roles/snmpd_conf/defaults/main.yml b/roles/snmpd_conf/defaults/main.yml index 9c8a5e2..8a14d4b 100644 --- a/roles/snmpd_conf/defaults/main.yml +++ b/roles/snmpd_conf/defaults/main.yml @@ -8,8 +8,8 @@ __template_header : The Zen Garden __snmpd_conf_file : /etc/snmp/snmpd.conf -__snmpd_conf_version : 1.0.0 -__snmpd_conf_revision : 22404 +__snmpd_conf_version : 1.0.1 +__snmpd_conf_revision : 231210 __snmp_pkg : net-snmp diff --git a/roles/snmpd_conf/handlers/main.yml b/roles/snmpd_conf/handlers/main.yml index 65b7655..bb06dac 100644 --- a/roles/snmpd_conf/handlers/main.yml +++ b/roles/snmpd_conf/handlers/main.yml @@ -3,4 +3,7 @@ service: name : snmpd state: restarted - when: ansible_virtualization_type != "docker" + when: + - ansible_virtualization_type == "docker" or + ansible_virtualization_type == "podman" or + ansible_virtualization_type == "container" diff --git a/roles/snmpd_conf/templates/snmpd_conf.j2 b/roles/snmpd_conf/templates/snmpd_conf.j2 index 9cb9ea1..1d01231 100644 --- a/roles/snmpd_conf/templates/snmpd_conf.j2 +++ b/roles/snmpd_conf/templates/snmpd_conf.j2 @@ -22,7 +22,7 @@ group MyRWGroup v2c readwrite group MyRWGroup usm readwrite 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 access MyROSystem "" any noauth exact system none none diff --git a/roles/snmpd_conf/vars/debian_12.yml b/roles/snmpd_conf/vars/debian_12.yml new file mode 100644 index 0000000..a47b044 --- /dev/null +++ b/roles/snmpd_conf/vars/debian_12.yml @@ -0,0 +1,5 @@ +--- +__snmp_pkg: snmpd + + +... diff --git a/roles/snmpd_conf/vars/fedora_39.yml b/roles/snmpd_conf/vars/fedora_39.yml new file mode 100644 index 0000000..6666f66 --- /dev/null +++ b/roles/snmpd_conf/vars/fedora_39.yml @@ -0,0 +1,5 @@ +--- +__snmp_pkg: net-snmp + + +...