added push notify

This commit is contained in:
2023-07-22 20:56:03 +02:00
parent 303a2640c9
commit fb7eb61de8

View File

@@ -1,8 +1,15 @@
- hosts: all
become: true
tasks:
- name: Update apt packages
apt:
upgrade: yes
update_cache: 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