devopsarr.lidarr.lidarr_import_list module – Manages Lidarr import list.
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_import_list
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr import list.
Parameters
Parameter |
Comments |
---|---|
Config contract. |
|
Enable automatic add flag. Choices:
|
|
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`) |
|
List order. |
|
List type. |
|
Metadata profile ID. |
|
Monitor new items. Choices:
|
|
Name. |
|
Quality profile ID. |
|
Root folder. |
|
Should monitor. Choices:
|
|
Should monitor existing flag. Choices:
|
|
Search on add 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 import list
- name: Create a import list
devopsarr.lidarr.lidarr_import_list:
enable_automatic_add: false
should_monitor_existing: true
should_monitor: "entireArtist"
quality_profile_id: 1
metadata_profile_id: 1
list_order: 1
monitor_new_items: "all"
should_search: false
fields:
- name: "apiKey"
value: "Key"
- name: "baseUrl"
value: "localhost"
- name: "profileIds"
value: [1]
- name: "rootFolderPaths"
value: ["/tmp"]
name: "LidarrImport"
list_type: "standard"
root_folder_path: "/tmp"
config_contract: "LidarrSettings"
implementation: "LidarrImport"
tags: []
# Delete a import list
- name: Delete a import list
devopsarr.lidarr.lidarr_import_list:
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: |
|
Enable automatic add flag. Returned: always Sample: |
|
field list. Returned: always |
|
import listID. Returned: always Sample: |
|
Implementation. Returned: always Sample: |
|
List order. Returned: always Sample: |
|
List type. Returned: always Sample: |
|
Metadata profile ID. Returned: always Sample: |
|
Monitor new items. Returned: always Sample: |
|
Name. Returned: always Sample: |
|
Protocol. Returned: always Sample: |
|
Quality profile ID. Returned: always Sample: |
|
Root folder. Returned: always Sample: |
|
Should monitor. Returned: always Sample: |
|
Should monitor existing flag. Returned: always Sample: |
|
Search on add flag. Returned: always Sample: |
|
Tag list. Returned: always Sample: |