Remove -e option of echo command

This commit is contained in:
2025-02-16 16:43:26 +01:00
parent 648e955ece
commit 0208130454
+1 -1
View File
@@ -10,7 +10,7 @@
name: snmpd name: snmpd
- name: Configure snmpd - name: Configure snmpd
shell : echo -e "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
- name: Restart snmpd.service - name: Restart snmpd.service
shell : systemctl restart snmpd.service shell : systemctl restart snmpd.service