devopsarr.sonarr.sonarr_import_list module – Manages Sonarr import list.
Note
This module is part of the devopsarr.sonarr collection (version 1.3.1).
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.sonarr
.
To use it in a playbook, specify: devopsarr.sonarr.sonarr_import_list
.
New in devopsarr.sonarr 1.0.0
Synopsis
Manages Sonarr import list.
Parameters
Parameter |
Comments |
---|---|
Config contract. |
|
Enable autometic add flag. Choices:
|
|
Configuration field list. |
|
Field name. |
|
Field value. |
|
Implementation. |
|
Name. |
|
Quality profile ID. |
|
Root folder path. |
|
Season folder flag. Choices:
|
|
Series type. |
|
Should monitor. |
|
API key for Sonarr authentication. |
|
Full Sonarr URL with protocol and port (e.g. `https://test.sonarr.tv:8989`) |
|
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(SONARR_URL) env variable.
for authentication, you can set service_account_contents using the c(SONARR_API_KEY) env variable.
Examples
---
# Create a import list
- name: Create a import list
devopsarr.sonarr.sonarr_import_list:
enable_automatic_add: false
should_monitor: "unknown"
quality_profile_id: 1
root_folder_path: "/config"
season_folder: false
fields:
- name: "apiKey"
value: "Key"
- name: "baseUrl"
value: "localhost"
- name: "languageProfileIds"
value: [1]
name: "SonarrImport"
series_type: "standard"
config_contract: "SonarrSettings"
implementation: "SonarrImport"
tags: []
# Delete a import list
- name: Delete a import list
devopsarr.sonarr.sonarr_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: |
|
Name. Returned: always Sample: |
|
Protocol. Returned: always Sample: |
|
Quality profile ID. Returned: always Sample: |
|
Root folder path. Returned: always Sample: |
|
Season folder flag. Returned: always Sample: |
|
Series type. Returned: always Sample: |
|
Should monitor. Returned: always Sample: |
|
Tag list. Returned: always Sample: |