Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Bullet proof approach to edit the snmpd.conf file.
- lineinfile: dest=/etc/snmp/snmpd.conf line={{ item.line }}
- with_items:
- - { line: "# This file has been created by Ansible." }
- - { line: " " }
- - { line: "# sec.name source community" }
- - { line: "com2sec readonly default public" }
Advertisement
Add Comment
Please, Sign In to add comment