diff --git a/configure_snmpd.yml b/configure_snmpd.yml index a74c228..ea3f0ae 100644 --- a/configure_snmpd.yml +++ b/configure_snmpd.yml @@ -14,6 +14,11 @@ src: osupdate dest: /etc/snmp + - name: Set osupdate executable + ansible.builtin.file: + path: /etc/snmp/osupdate + 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.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