devopsarr.lidarr.lidarr_quality_profile module – Manages Lidarr quality profile.

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_quality_profile.

New in devopsarr.lidarr 1.0.0

Synopsis

  • Manages Lidarr quality profile.

Parameters

Parameter

Comments

cutoff

integer

Quality ID to which cutoff.

cutoff_format_score

integer

Cutoff format score.

Default: 0

formats

list / elements=dictionary

Format items list. Define only the used custom formats.

Default: []

id

integer

Format ID.

name

string

Format name.

score

integer

Format score.

lidarr_api_key

string / required

API key for Lidarr authentication.

lidarr_url

string / required

Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`)

min_format_score

integer

Min format score.

Default: 0

name

string / required

Name.

quality_groups

list / elements=dictionary

Quality groups ordered list. Define only the allowed groups.

Default: []

id

integer

Quality group ID.

name

string

Quality group name.

qualities

list / elements=dictionary

Quality list.

id

integer

Quality ID.

name

string

Quality name.

state

string

Create or delete resource.

Choices:

  • "present" ← (default)

  • "absent"

upgrade_allowed

boolean

Upgrade allowed flag.

Choices:

  • false ← (default)

  • true

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 quality profile
- name: Create a quality profile
  devopsarr.lidarr.lidarr_quality_profile:
    name: "Example"
    upgrade_allowed: true
    cutoff: 1
    min_format_score: 0
    cutoff_format_score: 0
    quality_groups:
      - qualities:
        - id: 0
          name: "SDTV"
      - name: "Unknown"
        id: 1001
        qualities:
          - id: 32
            name: "MP3-8"
          - id: 31
            name: "MP3-16"
    formats: []

# Delete a quality profile
- name: Delete a quality_profile
  devopsarr.lidarr.lidarr_quality_profile:
    name: Example
    state: absent

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

cutoff

integer

Quality ID to which cutoff.

Returned: always

Sample: 1

cutoff_format_score

integer

Cutoff format score.

Returned: always

Sample: 0

format_items

list / elements=dictionary

Format items list.

Returned: always

Sample: []

id

integer

Quality Profile ID.

Returned: always

Sample: 1

items

list / elements=dictionary

Quality groups

Returned: always

Sample: []

min_format_score

integer

Min format score.

Returned: always

Sample: 0

name

string

Name.

Returned: always

Sample: "Example"

upgrade_allowed

boolean

Upgrade allowed flag.

Returned: always

Sample: false

Authors

  • Fuochi (@Fuochi)