devopsarr.lidarr.lidarr_notification module – Manages Lidarr notification.
Note
This module is part of the devopsarr.lidarr collection (version 1.0.0).
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 devopsarr.lidarr
.
To use it in a playbook, specify: devopsarr.lidarr.lidarr_notification
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr notification.
Parameters
Parameter |
Comments |
---|---|
Config contract. |
|
Configuration field list. |
|
Field name. |
|
Field value. |
|
Implementation. |
|
API key for Lidarr authentication. |
|
Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`) |
|
Name. |
|
On album delete flag. Choices:
|
|
On application update flag. Choices:
|
|
On artist delete flag. Choices:
|
|
On download failure flag. Choices:
|
|
On grab flag. Choices:
|
|
On health issue flag. Choices:
|
|
On health restored flag. Choices:
|
|
On import failure flag. Choices:
|
|
On release import flag. Choices:
|
|
On rename flag. Choices:
|
|
On track retag flag. Choices:
|
|
On upgrade flag. Choices:
|
|
Create or delete resource. Choices:
|
|
Tag list. Default: |
|
Flag to force update of secret fields. Choices:
|
Notes
Note
for authentication, you can set service_account_file using the c(LIDARR_URL) env variable.
for authentication, you can set service_account_contents using the c(LIDARR_API_KEY) env variable.
Examples
---
# Create a notification
- name: Create a notification
devopsarr.lidarr.lidarr_notification:
name: "Example"
on_grab: true
config_contract: "WebhookSettings"
implementation: "Webhook"
fields:
- name: "username"
value: "User"
- name: "password"
value: "test"
- name: "url"
value: "webhook.lcl"
- name: "method"
value: 1
tags: [1,2]
# Delete a notification
- name: Delete a notification
devopsarr.lidarr.lidarr_notification:
name: Example
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Config contract. Returned: always Sample: |
|
field list. Returned: always |
|
notification ID. Returned: always Sample: |
|
Implementation. Returned: always Sample: |
|
Name. Returned: always Sample: |
|
On album delete flag. Returned: always Sample: |
|
On application update flag. Returned: always Sample: |
|
On artist delete flag. Returned: always Sample: |
|
On download failure flag. Returned: always Sample: |
|
On grab flag. Returned: always Sample: |
|
On health issue flag. Returned: always Sample: |
|
On health restored flag. Returned: always Sample: |
|
On import failure flag. Returned: always Sample: |
|
On release import flag. Returned: always Sample: |
|
On rename flag. Returned: always Sample: |
|
On track retag flag. Returned: always Sample: |
|
On upgrade flag. Returned: always Sample: |
|
Tag list. Returned: always Sample: |