Add osupdate script

This commit is contained in:
2025-02-16 17:14:08 +01:00
parent 0208130454
commit 83027d18a3
+5
View File
@@ -9,6 +9,11 @@
ansible.builtin.apt: ansible.builtin.apt:
name: snmpd name: snmpd
- name: Get osupdate script
ansible.builtin.fetch:
src: /utils/osupdate
dest: /etc/snmp/
- name: Configure snmpd - name: Configure snmpd
shell : echo "agentAddress udp:161,udp6:[::1]:161\nrocommunity public default -V systemonly\nrwcommunity manage 192.168.1.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.1.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