devopsarr.lidarr.lidarr_root_folder module – Manages Lidarr root folder.
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_root_folder
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr root folder.
Parameters
Parameter |
Comments |
---|---|
API key for Lidarr authentication. |
|
Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`) |
|
Metadata profile ID. |
|
Monitor option. Choices:
|
|
Root folder friendly name. |
|
New item monitor option. Choices:
|
|
Actual root folder. |
|
Metadata profile ID. |
|
Create or delete resource. Choices:
|
|
Tag list. Default: |
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 root folder
- name: Create a root folder
devopsarr.lidarr.root_folder:
name: 'Music'
path: '/music'
new_item_monitor_option: 'all'
monitor_option: 'all'
metadata_profile_id: 1
quality_profile_id: 1
# Delete a root folder
- name: Delete a root_folder
devopsarr.lidarr.root_folder:
name: 'Music'
path: '/music'
new_item_monitor_option: 'all'
monitor_option: 'all'
metadata_profile_id: 1
quality_profile_id: 1
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Access flag. Returned: on create/update Sample: |
|
Metadata profile ID. Returned: always Sample: |
|
Monitor option. Returned: always Sample: |
|
New item monitor option. Returned: always Sample: |
|
Metadata profile ID. Returned: always Sample: |
|
root folder ID. Returned: always Sample: |
|
Root folder friendly name. Returned: always Sample: |
|
The root folder path. Returned: on create/update Sample: |
|
Tag list. Returned: always Sample: |