From 0b3dca86f6f46cdcfeba210188a1dc3d550d2e8a Mon Sep 17 00:00:00 2001 From: Marc Ahlgrim Date: Tue, 25 Oct 2022 10:22:00 +0200 Subject: [PATCH] fix sudo password problem with inventory Signed-off-by: Marc Ahlgrim --- install_ansible_rundeck.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install_ansible_rundeck.sh b/install_ansible_rundeck.sh index ff2221a..7e79735 100644 --- a/install_ansible_rundeck.sh +++ b/install_ansible_rundeck.sh @@ -21,6 +21,11 @@ apt install -y python3 pip sudo wget curl git nmap useradd -m -G sudo -s /bin/bash rundeck echo "rundeck:$USERPASSWORD" | chpasswd +# Quick fix: allow sudo to the rundeck user without password +# (needs review) + +echo "rundeck ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/rundeck + # install ansible through pip pip install ansible