devopsarr.lidarr.lidarr_remote_path_mapping (1.0.0) — module

Manages Lidarr remote path mapping.

| "added in version" 1.0.0 of devopsarr.lidarr"

Authors: Fuochi (@Fuochi)

Install collection

Install with ansible-galaxy collection install devopsarr.lidarr:==1.0.0


Add to requirements.yml

  collections:
    - name: devopsarr.lidarr
      version: 1.0.0

Description

Manages Lidarr remote path mapping.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
# Create a remote path mapping
- name: Create a remote path mapping
  devopsarr.lidarr.remote_path_mapping:
    host: 'transmission-host'
    remote_path: '/download/complete/'
    local_path: '/music-download/'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

# Delete a remote path mapping
- name: Delete a remote_path_mapping
  devopsarr.lidarr.remote_path_mapping:
    host: 'transmission-host'
    remote_path: '/download/complete/'
    local_path: '/music-download/'
    state: absent

Inputs

    
host:
    description: Download Client host.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description: Create or delete resource.
    required: false
    type: str

lidarr_url:
    description: Full Lidarr URL with protocol and port (e.g. `https://test.lidarr.tv:8686`)
    required: true
    type: str

local_path:
    description: Local path.
    required: true
    type: str

remote_path:
    description: Download Client remote path.
    required: true
    type: str

lidarr_api_key:
    description: API key for Lidarr authentication.
    required: true
    type: str

Outputs

host:
  description: Download Client host.
  returned: always
  sample: transmission-host
  type: str
id:
  description: remote path mapping ID.
  returned: always
  sample: '1'
  type: int
local_path:
  description: Local remote path.
  returned: always
  sample: /music-download/
  type: str
remote_path:
  description: Download Client remote path.
  returned: always
  sample: /download/complete/
  type: str