community.general.pushover (8.5.0) — module

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

Authors: Jim Richardson (@weaselkeeper), Bernd Arnold (@wopfel)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

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
  community.general.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
  community.general.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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Send notifications via pushover.net to a specific device
  community.general.pushover:
    msg: '{{ inventory_hostname }} has been lost somewhere'
    app_token: wxfdksl
    user_key: baa5fe97f2c5ab3ca8f0bb59
    device: admins-iPhone
  delegate_to: localhost

Inputs

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

pri:
    choices:
    - '-2'
    - '-1'
    - '0'
    - '1'
    - '2'
    default: '0'
    description:
    - Message priority (see U(https://pushover.net) for details).
    required: false
    type: str

title:
    description:
    - Message title.
    required: false
    type: str

device:
    description:
    - A device the message should be sent to. Multiple devices can be specified, separated
      by a comma.
    required: false
    type: str
    version_added: 1.2.0
    version_added_collection: community.general

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

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