replaced sudo command with global sudo var
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user