From c96ad603b0442f6eca57c0e23456d546791a3007 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:25 -0400 Subject: [PATCH] Fix sudoers to use conditional deploy_username --- roles/base/templates/etc/sudoers.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/etc/sudoers.j2 b/roles/base/templates/etc/sudoers.j2 index 76db387..a99e8ac 100644 --- a/roles/base/templates/etc/sudoers.j2 +++ b/roles/base/templates/etc/sudoers.j2 @@ -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