devopsarr.radarr.radarr_media_management module – Manages Radarr media management.
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_media_management
.
New in devopsarr.radarr 1.0.0
Synopsis
Manages Radarr media management.
Parameters
Parameter |
Comments |
---|---|
Auto rename folders. Choices:
|
|
Auto unmonitor previously downloaded movies. Choices:
|
|
Permission in linux format. |
|
Linux group. |
|
Copy using hardlinks. Choices:
|
|
Create empty movie 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:
|
|
Minimum free space when importing. |
|
Paths default static. Choices:
|
|
API key for Radarr authentication. |
|
Full Radarr URL with protocol and port (e.g. `https://test.radarr.tv:7878`) |
|
Bin path. |
|
Recycle bin days. |
|
Rescan after refresh. Choices:
|
|
Import sctipt path. Default: |
|
Set linux permission flag. Choices:
|
|
Skip free space check when importing. Choices:
|
|
Use import script flag. 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
---
# update media management
- name: Update media management
devopsarr.radarr.radarr_media_management:
chmod_folder: "755"
rescan_after_refresh: "always"
recycle_bin: ""
file_date: "cinemas"
extra_file_extensions: "srt,info"
download_propers_and_repacks: "doNotPrefer"
chown_group: "arrs"
minimum_free_space_when_importing: 100
recycle_bin_cleanup_days: 7
auto_unmonitor_previously_downloaded_movies: 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_movie_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 |
---|---|
Auto rename folders. Returned: always Sample: |
|
Auto unmonitor previously downloaded movies. Returned: always Sample: |
|
Permission in linux format. Returned: always Sample: |
|
Linux group. Returned: always Sample: |
|
Copy using hardlinks. Returned: always Sample: |
|
Create empty movie 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: |
|
Import sctipt path. Returned: always Sample: |
|
Set linux permission flag. Returned: always Sample: |
|
Skip free space check when importing. Returned: always Sample: |
|
Use import script flag. Returned: always Sample: |