This commit is contained in:
2022-06-22 17:16:20 +02:00
parent dc6acaa3de
commit 7173490cae
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
Debian-snmp ALL = NOPASSWD: /etc/snmp/bind, /etc/snmp/fail2ban, /etc/snmp/docker-stats.sh, /etc/snmp/mailcow-dockerized-postfix, /etc/snmp/unbound Debian-snmp ALL = NOPASSWD: /etc/snmp/bind, /etc/snmp/fail2ban, /etc/snmp/docker-stats.sh, /etc/snmp/mailcow-dockerized-postfix, /etc/snmp/unbound, /etc/snmp/osupdate, /etc/snmp/distro
Debian-snmp ALL = (postgres) NOPASSWD: /etc/snmp/postgres Debian-snmp ALL = (postgres) NOPASSWD: /etc/snmp/postgres

View File

@@ -18,7 +18,7 @@
- name: server | snmpd | insert anchors to snmpd.conf - name: server | snmpd | insert anchors to snmpd.conf
blockinfile: blockinfile:
path: "{{ snmpd_conf }}" path: "{{ snmpd_conf }}"
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. marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: | block: |
################################################################################ ################################################################################
# SECTION: custom settings # SECTION: custom settings