--- - name: Test connectivity and gather system information hosts: all become: false tasks: - name: Ping the servers ansible.builtin.ping: - name: Update and Upgrade all Servers apt: upgrade: yes update_cache: yes