Fix sudoers to use conditional deploy_username
This commit is contained in:
parent
29363ebf80
commit
c96ad603b0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue