Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. - name: Bullet proof approach to edit the snmpd.conf file.
  2. lineinfile: dest=/etc/snmp/snmpd.conf line={{ item.line }}
  3. with_items:
  4. - { line: "# This file has been created by Ansible." }
  5. - { line: " " }
  6. - { line: "# sec.name source community" }
  7. - { line: "com2sec readonly default public" }