Add ansible user to Ubuntu and add to sudoers sudo adduser ansible sudo usermod -aG sudo ansible sudo visudo /etc/sudoers ansible ALL=(ALL) NOPASSWD:ALL export ANSIBLE_HOST_KEY_CHECKING=True ansible-playbook -i ./inventory.yml manage_homelab.yml