From 0dd50892c3b962ba065e144f31d607293d7b6c16 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 4 Dec 2020 06:43:35 -0600 Subject: [PATCH] Add an Ansible user, too --- gentoostrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gentoostrap.sh b/gentoostrap.sh index fa2bb36..c5563ae 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -305,6 +305,10 @@ build-gentoo-chroot() { passwd salt fi + # Configure Ansible user, his sudo rights are specifically in sudoers + if ! id ansible > /dev/null 2>&1; then + useradd ansible -m -s /bin/bash -u 1001 -U + fi # Configure services systemctl enable NetworkManager sshd