devopsarr.radarr.radarr_custom_format module – Manages Radarr custom format.
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_custom_format
.
New in devopsarr.radarr 1.0.0
Synopsis
Manages Radarr custom format.
Parameters
Parameter |
Comments |
---|---|
Include custom format when renaming flag. Choices:
|
|
Name. |
|
API key for Radarr authentication. |
|
Full Radarr URL with protocol and port (e.g. `https://test.radarr.tv:7878`) |
|
Specification list. |
|
Configuration field list. |
|
Field name. |
|
Field value. |
|
Implementation. |
|
Specification name. |
|
Negate flag. Choices:
|
|
Required flag. Choices:
|
|
Create or delete resource. 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 custom format
- name: Create a custom format
devopsarr.radarr.radarr_custom_format:
include_custom_format_when_renaming: false
name: "Language"
specifications:
- name: "arabic"
implementation: "LanguageSpecification"
negate: false
required: true
fields:
- name: "value"
value: 26
# Delete a custom format
- name: Delete a custom format
devopsarr.radarr.radarr_custom_format:
name: Example
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
custom formatID. Returned: always Sample: |
|
Include custom format when renaming flag. Returned: always Sample: |
|
Name. Returned: always Sample: |
|
specification list. Returned: always |