- hosts: all become: true tasks: - name: Update apt packages apt: upgrade: yes update_cache: yes - name: Send notifications community.general.pushover: title: 'APT Updates' msg: '{{ testvar }} has been lost somewhere' app_token: '{{ app_token }}' user_key: '{{ user_key }}' delegate_to: localhost