Linux Hint published a tutorial about running apt-get Update in Ansible.
How to Run an apt-get Update in Ansible
It takes an immense amount of time and gets very tiresome to SSH into all the machines, do an apt-get update and check if there are updates and install them. For this article, we’ll show you how to utilize a powerful automation tool to update all remote systems using apt.