samdoran.macos.parallels_facts (2.5.5) — module

Gather information about Parallels using the C(prlsrvctl) command

| "added in version" 1.0.0 of samdoran.macos"

Authors: Sam Doran (@samdoran)

Install collection

Install with ansible-galaxy collection install samdoran.macos:==2.5.5


Add to requirements.yml

  collections:
    - name: samdoran.macos
      version: 2.5.5

Description

Gather information about Parallels using the C(prlsrvctl) command.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather Parallels facts
  samdoran.macos.parallels_facts:

Outputs

ansible_facts:
  contains:
    parallels:
      contains:
        Hardware info:
          description: Hardware devices
          elements: dict
          type: list
        Hostname:
          description: Parallels host name
          type: str
        ID:
          description: Parallels host ID
          type: str
        License:
          contains:
            key:
              description: License key
              sample: A8GZ1H-******-******-******-7N2HQG
              type: str
          description: Parallels license information
          type: dict
        OS:
          description: Operating system version
          sample: Mac OS X 10.15.6(19G2021)
          type: str
        VMs:
          description: List of VMs registered to Parallels
          elements: dict
          sample:
          - ip_configured: 10.111.77.22
            name: windows-2016
            status: running
            uuid: c9eb5191-c85e-4758-bfe7-a983c79af343
          - ip_configured: '-'
            name: macOS-10.15
            status: stopped
            uuid: e711eb50-1c80-43ef-9f74-86f7a0a6f387
          - ip_configured: 10.72.22.3
            name: rhel-9
            status: running
            uuid: 39a76fba-275e-4d54-8227-281e1346641e
          type: list
        Version:
          description: Parallels version information
          sample:
            Edition: Desktop
            Full: 16.0.0-48916
            Major: '16'
            MajorMinor: 16.0.0
            Release: '48916'
          type: dict
      description: Data returned from C(prlsrvctl info). Not all values are documented.
      type: dict
  description: Facts to add to ansible_facts
  returned: always
  type: dict