fix sudo password problem with inventory

Signed-off-by: Marc Ahlgrim <marc@onemarcfifty.com>
This commit is contained in:
Marc Ahlgrim 2022-10-25 10:22:00 +02:00
parent 8cb55aa67d
commit 0b3dca86f6

View File

@ -21,6 +21,11 @@ apt install -y python3 pip sudo wget curl git nmap
useradd -m -G sudo -s /bin/bash rundeck useradd -m -G sudo -s /bin/bash rundeck
echo "rundeck:$USERPASSWORD" | chpasswd 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 # install ansible through pip
pip install ansible pip install ansible