check_point.mgmt.cp_mgmt_lsm_run_script (5.2.3) — module

Executes the lsm-run-script on a given list of targets. Run the given script on the targets devices.

| "added in version" 3.0.0 of check_point.mgmt"

Authors: Shiran Golzar (@chkp-shirango)

preview | supported by community

Install collection

Install with ansible-galaxy collection install check_point.mgmt:==5.2.3


Add to requirements.yml

  collections:
    - name: check_point.mgmt
      version: 5.2.3

Description

Executes the lsm-run-script on a given list of targets. Run the given script on the targets devices.

All operations are performed over Web Services API.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: lsm-run-script
  cp_mgmt_lsm_run_script:
    script: ls -l /
    targets:
    - lsm_gateway

Inputs

    
script:
    description:
    - The entire content of the script.
    type: str

targets:
    description:
    - On what targets to execute this command. Targets may be identified by their name,
      or object unique identifier.
    elements: str
    type: list

version:
    description:
    - Version of checkpoint. If not given one, the latest version taken.
    type: str

script_base64:
    description:
    - The entire content of the script encoded in Base64.
    type: str

wait_for_task:
    default: true
    description:
    - Wait for the task to end. Such as publish task.
    type: bool

auto_publish_session:
    default: false
    description:
    - Publish the current session if changes have been performed after task completes.
    type: bool

wait_for_task_timeout:
    default: 30
    description:
    - How many minutes to wait until throwing a timeout error.
    type: int

Outputs

cp_mgmt_lsm_run_script:
  description: The checkpoint lsm-run-script output.
  returned: always.
  type: dict