samdoran.macos.parallels_desktop (2.5.5) — module

Make sure that Parallels Desktop is not running

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

Authors: Sviatoslav Sydorenko (@webknjaz)

preview | supported by community

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

Ask Parallels Desktop to terminate in many ways.

This module attempts to kill Parallels using a C(osascript) command,

waiting for it to terminate and then following up with

C(kill -SIGTERM) and finally with C(kill -SIGKILL) as the last

resort. The use of the fallbacks depends on the ``state`` requested.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---

- name: Make sure that Parallels Desktop is turned off
  samdoran.macos.parallels_desktop:
    state: murdered

Inputs

    
state:
    choices:
    - started
    - terminated
    - killed
    - murdered
    default: started
    description: The most ruthless method allowed for stopping the Parallels Desktop application
      execution, unless set to ``started``.
    type: str

Outputs

cmd:
  description: Raw underlying command
  returned: failure
  type: list
cmd_string:
  description: Underlying command as a string
  returned: failure
  type: str
msg:
  description: Execution details
  returned: always
  type: str
rc:
  description: Return code of the underlying command
  returned: failure
  type: int
stderr:
  description: Error output of the underlying command
  returned: failure
  type: str
stdout:
  description: Standard output of the underlying command
  returned: failure
  type: str