added push notify
This commit is contained in:
@@ -1,8 +1,15 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
|
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt packages
|
- name: Update apt packages
|
||||||
apt:
|
apt:
|
||||||
upgrade: yes
|
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
|
||||||
Reference in New Issue
Block a user