What does sudo apt update do before Ansible is installed on Ubuntu?
sudo apt update
It installs the Ansible package and all of its dependencies.
It refreshes the hosts in /etc/ansible/hosts.
/etc/ansible/hosts
It generates an SSH key pair for managed-node authentication.
It downloads current package information from the configured software repositories.