devopsarr.lidarr.lidarr_custom_format module – Manages Lidarr custom format.
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_custom_format
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr custom format.
Parameters
Parameter |
Comments |
---|---|
Include custom format when renaming flag. Choices:
|
|
API key for Lidarr authentication. |
|
Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`) |
|
Name. |
|
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(LIDARR_URL) env variable.
for authentication, you can set service_account_contents using the c(LIDARR_API_KEY) env variable.
Examples
---
# Create a custom format
- name: Create a custom format
devopsarr.lidarr.lidarr_custom_format:
include_custom_format_when_renaming: false
name: "Size"
specifications:
- name: "size"
implementation: "SizeSpecification"
negate: false
required: true
fields:
- name: "min"
value: 0
- name: "max"
value: 10
# Delete a custom format
- name: Delete a custom format
devopsarr.lidarr.lidarr_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 |