change to subnet manage rights with serveur and maison subnet

This commit is contained in:
2026-03-28 11:34:54 +01:00
parent 4d782c4052
commit cedc5cd467
+1 -1
View File
@@ -20,7 +20,7 @@
mode: u+x,g+x
- name: Configure snmpd
shell: echo "agentAddress udp:161,udp6:[::1]:161\nrocommunity public default -V systemonly\nrwcommunity manage 192.168.100.30\nrwcommunity manage localhost\nrocommunity6 public default -V systemonly\nsysLocation SDA Corporation/Internet Server/\nsysContact thedarty@gmail.com\nextend osupdate /etc/snmp/osupdate" > /etc/snmp/snmpd.conf
shell: echo "agentAddress udp:161,udp6:[::1]:161\nrocommunity public default -V systemonly\nrwcommunity manage 192.168.100.0/24\nrwcommunity manage 192.168.10.0/24\nrwcommunity manage localhost\nrocommunity6 public default -V systemonly\nsysLocation SDA Corporation/Internet Server/\nsysContact thedarty@gmail.com\nextend osupdate /etc/snmp/osupdate" > /etc/snmp/snmpd.conf
- name: Restart snmpd.service
shell: systemctl restart snmpd.service