Skip to content

notification_info

lucasheld edited this page Aug 2, 2022 · 23 revisions

lucasheld.uptime_kuma.notification_info module -- Retrieves facts about a notification.

Note

This module is part of the lucasheld.uptime_kuma collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install lucasheld.uptime_kuma.

To use it in a playbook, specify: lucasheld.uptime_kuma.notification_info.

  • Retrieves facts about a notification.

The below requirements are needed on the host that executes this module.

  • uptime_kuma_api

Parameter

Comments

api_password

string

The Uptime Kuma password.

api_token

string

The Uptime Kuma login token.

api_url

string

The Uptime Kuma URL.

Default: "http://127.0.0.1:3001"

api_username

string

The Uptime Kuma username.

id

integer

The id of the notification to inspect.

name

string

The name of the notification to inspect.

- name: get all notifications
  lucasheld.uptime_kuma.notification_info:
    api_url: http://192.168.1.10:3001
    api_username: admin
    api_password: secret
  register: result

Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:

Key

Description

notifications

list / elements=dictionary

The notifications as list

Returned: always

Authors

  • Lucas Held (@lucasheld)

Collection links

Issue Tracker Repository (Sources)

Clone this wiki locally