devopsarr.radarr.radarr_notification module – Manages Radarr notification.
Note
This module is part of the devopsarr.radarr collection (version 1.2.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.radarr
.
To use it in a playbook, specify: devopsarr.radarr.radarr_notification
.
New in devopsarr.radarr 1.0.0
Synopsis
Manages Radarr notification.
Parameters
Parameter |
Comments |
---|---|
Config contract. |
|
Configuration field list. |
|
Field name. |
|
Field value. |
|
Implementation. |
|
Name. |
|
On application update flag. Choices:
|
|
On download flag. Choices:
|
|
On grab flag. Choices:
|
|
On health issue flag. Choices:
|
|
On health restored flag. Choices:
|
|
On manual interaction required flag. Choices:
|
|
On movie add flag. Choices:
|
|
On movie delete flag. Choices:
|
|
On movie file delete flag. Choices:
|
|
On movie file delete for upgrade flag. Choices:
|
|
On rename flag. Choices:
|
|
On upgrade flag. Choices:
|
|
API key for Radarr authentication. |
|
Full Radarr URL with protocol and port (e.g. `https://test.radarr.tv:7878`) |
|
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(RADARR_URL) env variable.
for authentication, you can set service_account_contents using the c(RADARR_API_KEY) env variable.
Examples
---
# Create a notification
- name: Create a notification
devopsarr.radarr.radarr_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.radarr.radarr_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 application update flag. Returned: always Sample: |
|
On download 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 manual interaction required flag. Returned: always Sample: |
|
On movie add flag. Returned: always Sample: |
|
On movie delete flag. Returned: always Sample: |
|
On movie file delete flag. Returned: always Sample: |
|
On movie file delete for upgrade flag. Returned: always Sample: |
|
On rename flag. Returned: always Sample: |
|
On upgrade flag. Returned: always Sample: |
|
Tag list. Returned: always Sample: |