devopsarr.lidarr.lidarr_auto_tag module – Manages Lidarr auto tag.
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_auto_tag
.
New in devopsarr.lidarr 1.0.0
Synopsis
Manages Lidarr auto tag.
Parameters
Parameter |
Comments |
---|---|
API key for Lidarr authentication. |
|
Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`) |
|
Name. |
|
Remove tags automatically flag. Choices:
|
|
Specification list. |
|
Configuration field list. |
|
Field name. |
|
Field value. |
|
Implementation. |
|
Specification name. |
|
Negate flag. Choices:
|
|
Required flag. Choices:
|
|
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 auto tag
- name: Create a auto tag
devopsarr.lidarr.lidarr_auto_tag:
remove_tags_automatically: false
name: "Type"
tags: [1]
specifications:
- name: "anime"
implementation: "MusicTypeSpecification"
negate: false
required: true
fields:
- name: "value"
value: 2
# Delete a auto tag
- name: Delete a auto tag
devopsarr.lidarr.lidarr_auto_tag:
name: Example
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
auto tagID. Returned: always Sample: |
|
Name. Returned: always Sample: |
|
Remove tags automatically flag. Returned: always Sample: |
|
specification list. Returned: always |
|
Tag list. Returned: always Sample: |