Add an Ansible user, too

This commit is contained in:
Salt 2020-12-04 06:43:35 -06:00
parent 7fd0428d78
commit 0dd50892c3
1 changed files with 4 additions and 0 deletions

View File

@ -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