satishkamavaram.custom.inventory (1.0.0) — module

Inventory list

Authors: unknown

Install collection

Install with ansible-galaxy collection install satishkamavaram.custom:==1.0.0


Add to requirements.yml

  collections:
    - name: satishkamavaram.custom
      version: 1.0.0

Description

This inventory module

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get inventory devices
  satish.custom.inventory:
    regex: ".*"
    reachable: true

Inputs

    
regex:
    description:
    - Regular expression matching device name, type or model to display
    required: false
    type: str

not_regex:
    description:
    - Regular expression matching device name, type or model NOT to display.
    required: false
    type: str

reachable:
    default: false
    description:
    - Display only reachable devices
    required: false
    type: bool

Outputs

stdout:
  description: Status of inventory
  returned: always apart from low level errors
  sample: Task inventory completed successfully
  type: str
stdout_lines:
  description: The value of stdout split into a list
  returned: always apart from low level errors
  sample: show table view data
  type: list