community.general.pushover (0.2.1) — module

Send notifications via U(https://pushover.net)

Authors: Jim Richardson (@weaselkeeper)

Install collection

Install with ansible-galaxy collection install community.general:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

Description

Send notifications via pushover, to subscriber list of devices, and email addresses. Requires pushover app on devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Send notifications via pushover.net
  pushover:
    msg: '{{ inventory_hostname }} is acting strange ...'
    app_token: wxfdksl
    user_key: baa5fe97f2c5ab3ca8f0bb59
  delegate_to: localhost
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Send notifications via pushover.net
  pushover:
    title: 'Alert!'
    msg: '{{ inventory_hostname }} has exploded in flames, It is now time to panic'
    pri: 1
    app_token: wxfdksl
    user_key: baa5fe97f2c5ab3ca8f0bb59
  delegate_to: localhost

Inputs

    
msg:
    description:
    - What message you wish to send.
    required: true

pri:
    description:
    - Message priority (see U(https://pushover.net) for details).
    required: false

title:
    description:
    - Message title.
    required: false

user_key:
    description:
    - Pushover issued authentication key for your user.
    required: true

app_token:
    description:
    - Pushover issued token identifying your pushover app.
    required: true