diff --git a/roles/server/files/sudoers b/roles/server/files/sudoers index 581991b..b117044 100644 --- a/roles/server/files/sudoers +++ b/roles/server/files/sudoers @@ -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 diff --git a/roles/server/tasks/utilities/snmpd.yml b/roles/server/tasks/utilities/snmpd.yml index f7b8781..9ec1409 100644 --- a/roles/server/tasks/utilities/snmpd.yml +++ b/roles/server/tasks/utilities/snmpd.yml @@ -18,7 +18,7 @@ - name: server | snmpd | insert anchors to snmpd.conf blockinfile: 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: | ################################################################################ # SECTION: custom settings