Fix sudoers to use conditional deploy_username

This commit is contained in:
Joshua Boniface 2021-04-13 16:50:05 -04:00 committed by Joshua Boniface
parent 70ba4b240f
commit da9eafcdfa
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"
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
#includedir /etc/sudoers.d