Add an Ansible user, too
This commit is contained in:
parent
7fd0428d78
commit
0dd50892c3
@ -305,6 +305,10 @@ build-gentoo-chroot() {
|
|||||||
passwd salt
|
passwd salt
|
||||||
fi
|
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
|
# Configure services
|
||||||
systemctl enable NetworkManager sshd
|
systemctl enable NetworkManager sshd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user