optimized snmpd
This commit is contained in:
@@ -11,10 +11,7 @@
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK" # not required. The marker line template. C({mark}) will be replaced with the values C(in marker_begin) (default="BEGIN") and C(marker_end) (default="END"). Using a custom marker without the C({mark}) variable may result in the block being repeatedly inserted on subsequent playbook runs.
|
||||
block: |
|
||||
################################################################################
|
||||
# SECTION: {{ item }}
|
||||
loop:
|
||||
- ACLs
|
||||
- Extends
|
||||
# SECTION: custom settings
|
||||
|
||||
- name: server | snmpd | stop service
|
||||
service:
|
||||
@@ -30,7 +27,7 @@
|
||||
lineinfile:
|
||||
path: "/etc/snmp/snmpd.conf" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
|
||||
line: "rouser {{snmp_user }} authpriv -V systemonly"
|
||||
insertafter: "# SECTION: ACLs"
|
||||
insertafter: "# SECTION: custom settings"
|
||||
|
||||
- name: server | snmpd start service
|
||||
service:
|
||||
|
||||
Reference in New Issue
Block a user