devopsarr.sonarr.sonarr_media_management module – Manages Sonarr media management.
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_media_management
.
New in devopsarr.sonarr 0.0.5
Synopsis
Manages Sonarr media management.
Parameters
Parameter |
Comments |
---|---|
Auto unmonitor previously downloaded episodes. Choices:
|
|
Permission in linux format. |
|
Linux group. |
|
Copy using hardlinks. Choices:
|
|
Create empty series folder. Choices:
|
|
Delete empty folders. Choices:
|
|
Download propers and repack. Choices:
|
|
Enable media info flag. Choices:
|
|
Episode title required. 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. |
|
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:
|
|
API key for Sonarr authentication. |
|
Full Sonarr URL with protocol and port (e.g. `https://test.sonarr.tv:8989`) |
|
Use import script flag. 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
---
# update media management
- name: Update media management
devopsarr.sonarr.sonarr_media_management:
chmod_folder: "755"
rescan_after_refresh: "always"
recycle_bin: ""
file_date: "localAirDate"
extra_file_extensions: "srt,info"
episode_title_required: "always"
download_propers_and_repacks: "doNotPrefer"
chown_group: "arrs"
minimum_free_space_when_importing: 100
recycle_bin_cleanup_days: 7
auto_unmonitor_previously_downloaded_episodes: 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_series_folders: true
copy_using_hardlinks: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Auto unmonitor previously downloaded episodes. Returned: always Sample: |
|
Permission in linux format. Returned: always Sample: |
|
Linux group. Returned: always Sample: |
|
Copy using hardlinks. Returned: always Sample: |
|
Create empty series folder. Returned: always Sample: |
|
Delete empty folders. Returned: always Sample: |
|
Download propers and repack. Returned: always Sample: |
|
Enable media info flag. Returned: always Sample: |
|
Episode title required. 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: |
|
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: |