ansible / ansible.builtin / v2.9.0 / module / cp_mgmt_run_script Executes the script on a given list of targets. | "added in version" 2.9 of ansible.builtin" Authors: Or Soffer (@chkp-orso) preview | supported by communityansible.builtin.cp_mgmt_run_script (v2.9.0) — module
pip
Install with pip install ansible==2.9.0
Executes the script on a given list of targets.
All operations are performed over Web Services API.
- name: run-script cp_mgmt_run_script: script: ls -l / script_name: 'Script Example: List files under / dir' targets: - corporate-gateway
args: description: - Script arguments. type: str script: description: - Script body. type: str targets: description: - On what targets to execute this command. Targets may be identified by their name, or object unique identifier. type: list version: description: - Version of checkpoint. If not given one, the latest version taken. type: str comments: description: - Comments string. type: str script_name: description: - Script name. type: str wait_for_task: default: true description: - Wait for the task to end. Such as publish task. type: bool wait_for_task_timeout: default: 30 description: - How many minutes to wait until throwing a timeout error. type: int
cp_mgmt_run_script: description: The checkpoint run-script output. returned: always. type: dict