Fix sudoers to use conditional deploy_username

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:25 -04:00
parent 29363ebf80
commit c96ad603b0
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
root ALL=(ALL:ALL) NOPASSWD: ALL root ALL=(ALL:ALL) NOPASSWD: ALL
deploy ALL=(ALL:ALL) NOPASSWD: /bin/sh {{ deploy_username }} ALL=(ALL:ALL) NOPASSWD: /bin/sh
%sudo ALL=(ALL:ALL) NOPASSWD: ALL %sudo ALL=(ALL:ALL) NOPASSWD: ALL
#includedir /etc/sudoers.d #includedir /etc/sudoers.d