community.lbry.lbry_address_is_mine (0.1.1) — module

Checks if an address is associated with the current wallet.

| "added in version" 1.0.0 of community.lbry"

Authors: Rhys Campbell (@rhysmeister)

Install collection

Install with ansible-galaxy collection install community.lbry:==0.1.1


Add to requirements.yml

  collections:
    - name: community.lbry
      version: 0.1.1

Description

Checks if an address is associated with the current wallet.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Check if an address belowngs to the default account/wallet
  community.lbry.lbry_address_is_mine:
    address: "mxCb2mjmyDRXYdPGkC6QRqjMwpTL2wVoVe"
  register: result

Inputs

    
host:
    aliases:
    - login_host
    default: 127.0.0.1
    description:
    - The LBRY SDK Server Hostname.
    type: str

port:
    aliases:
    - login_port
    default: 5279
    description:
    - The LBRY SDK Server Port.
    type: int

debug:
    default: false
    description:
    - Show additional debug output.
    type: bool

address:
    description:
    - address to check.
    required: true
    type: str

protocol:
    default: http
    description:
    - The LBRY SDK Server Protocol.
    type: str

wallet_id:
    description:
    - restrict operation to specific wallet.
    type: str

account_id:
    description:
    - id of the account to use.
    type: str

Outputs

is_mine:
  description: Is the address yours?
  returned: on success
  sample: true
  type: bool
msg:
  description: what went wrong.
  returned: on error
  sample: The module returned an invalid result of type str
  type: str