�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
m Z d
� Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys�
---
module: cp_mgmt_run_script
short_description: Executes the script on a given list of targets.
description:
- Executes the script on a given list of targets.
- All operations are performed over Web Services API.
version_added: "2.9"
author: "Or Soffer (@chkp-orso)"
options:
script_name:
description:
- Script name.
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
args:
description:
- Script arguments.
type: str
comments:
description:
- Comments string.
type: str
extends_documentation_fragment: checkpoint_commands
s�
- name: run-script
cp_mgmt_run_script:
script: ls -l /
script_name: 'Script Example: List files under / dir'
targets:
- corporate-gateway
sg
cp_mgmt_run_script:
description: The checkpoint run-script output.
returned: always.
type: dict
( t
AnsibleModule( t% checkpoint_argument_spec_for_commandst api_commandc
C` s� t d t d d � d t d d � d t d d � d t d d � d t d d � � } | j t � t d | � } d
} t | | � } | j | � d S( Nt script_namet typet strt scriptt targetst listt argst commentst
argument_specs
run-script( t dictt updateR R R
t exit_json( R t modulet commandt result( ( sZ /usr/lib/python2.7/site-packages/ansible/modules/network/check_point/cp_mgmt_run_script.pyt mainQ s
t __main__N( t
__future__R R R R t
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR t2 ansible.module_utils.network.checkpoint.checkpointR R
R t __name__( ( ( sZ /usr/lib/python2.7/site-packages/ansible/modules/network/check_point/cp_mgmt_run_script.pyt <module> s
!
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]