replaced sudo command with global sudo var

This commit is contained in:
rene
2022-03-24 16:39:49 +01:00
parent b6aa1641cd
commit cba88dfa98
4 changed files with 6 additions and 5 deletions

View File

@@ -46,7 +46,7 @@
lineinfile:
path: "{{ snmpd_conf }}"
state: present
line: "extend postgres /usr/bin/sudo -u postgres /etc/snmp/postgres"
line: "extend postgres {{ sudo }} -u postgres /etc/snmp/postgres"
insertafter: "# SECTION: Extends"
notify: restart_snmpd
when: postgres == true