devopsarr.lidarr.lidarr_media_management module – Manages Lidarr media management.
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_media_management
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr media management.
Parameters
Parameter |
Comments |
---|---|
Allow fingerprinting. Choices:
|
|
Auto rename folders. Choices:
|
|
Auto unmonitor previously downloaded tracks. Choices:
|
|
Permission in linux format. |
|
Linux group. |
|
Copy using hardlinks. Choices:
|
|
create empty artist folder. Choices:
|
|
Delete empty folders. Choices:
|
|
Download propers and repack. Choices:
|
|
Enable media info flag. Choices:
|
|
Comma separated list of extra files extension to be imported. |
|
File date modification. Choices:
|
|
Import extra files flag. Choices:
|
|
API key for Lidarr authentication. |
|
Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`) |
|
Minimum free space when importing. |
|
Paths default static. Choices:
|
|
Bin path. |
|
Recycle bin days. |
|
Rescan after refresh. Choices:
|
|
Set linux permission flag. Choices:
|
|
Skip free space check when importing. Choices:
|
|
Watch library for changes flag. 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
---
# update media management
- name: Update media management
devopsarr.lidarr.lidarr_media_management:
chmod_folder: "755"
rescan_after_refresh: "always"
recycle_bin: ""
file_date: "none"
extra_file_extensions: "info"
download_propers_and_repacks: "doNotPrefer"
allow_fingerprinting: "newFiles"
chown_group: "arrs"
minimum_free_space_when_importing: 100
recycle_bin_cleanup_days: 7
auto_unmonitor_previously_downloaded_tracks: true
skip_free_space_check_when_importing: true
set_permissions_linux: true
import_extra_files: true
enable_media_info: true
delete_empty_folders: true
create_empty_artist_folders: true
copy_using_hardlinks: true
paths_default_static: false
auto_rename_folders: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Allow fingerprinting. Returned: always Sample: |
|
Auto rename folders. Returned: always Sample: |
|
Auto unmonitor previously downloaded tracks. Returned: always Sample: |
|
Permission in linux format. Returned: always Sample: |
|
Linux group. Returned: always Sample: |
|
Copy using hardlinks. Returned: always Sample: |
|
create empty artist folder. Returned: always Sample: |
|
Delete empty folders. Returned: always Sample: |
|
Download propers and repack. Returned: always Sample: |
|
Enable media info flag. Returned: always Sample: |
|
Comma separated list of extra files extension to be imported. Returned: always Sample: |
|
File date modification. Returned: always Sample: |
|
Media management ID. Returned: always Sample: |
|
Import extra files flag. Returned: always Sample: |
|
Minimum free space when importing. Returned: always Sample: |
|
Paths default static. Returned: always Sample: |
|
Bin path. Returned: always Sample: |
|
Recycle bin days. Returned: always Sample: |
|
Rescan after refresh. Returned: always Sample: |
|
Set linux permission flag. Returned: always Sample: |
|
Skip free space check when importing. Returned: always Sample: |
|
Watch library for changes flag. Returned: always Sample: |