Getting failed to lock apt for exclusive operation on a playbook using roles. Not sure if I'm doing this right.

While I’m learning Ansible, I started on my first role, which is to do a simple sudo apt-get update and upgrade.

As a flat file, this works: