sebw.gotify.gotify (1.0.1) — module

Send a message to Gotify

| "added in version" 1.0.0 of sebw.gotify"

Authors: Sebastien Wains (@sebw)

preview | supported by community

Install collection

Install with ansible-galaxy collection install sebw.gotify:==1.0.1


Add to requirements.yml

  collections:
    - name: sebw.gotify
      version: 1.0.1

Description

Send messages to a Gotify server, notifying your devices (Android or browser)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message
- gotify:
    url: https://gotify.example.org
    token: mytokenmustbevaulted
    title: My Ansible Notification
    msg: Ansible task finished
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message with higher priority
- gotify:
    url: https://gotify.example.org
    token: mytokenmustbevaulted
    title: My Ansible Notification
    msg: Ansible task finished
    priority: 4
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# send a message to a non TLS Gotify instance, running on a non standard port and under /mygotify/ path
- gotify:
    url: http://www.example.org:88/gotify/
    token: mytokenmustbevaulted
    title: My Ansible Notification
    msg: Ansible task finished

Inputs

    
msg:
    description:
    - The message body
    required: true
    type: str

url:
    description:
    - URL to connect to
    required: true
    type: str

title:
    default: Ansible Notification
    description:
    - The title of the message
    required: false
    type: str

token:
    description:
    - Application token
    required: true
    type: str

priority:
    default: 2
    description:
    - The message priority (0 to 5)
    type: int