Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/check_point/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_run_script.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZmZddlZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bysq
---
module: checkpoint_run_script
short_description: Run scripts on Check Point devices over Web Services API
description:
  - Run scripts on Check Point devices.
    All operations are performed over Web Services API.
version_added: "2.8"
author: "Ansible by Red Hat (@rcarrillocruz)"
options:
  script_name:
    description:
      - Name of the script.
    type: str
    required: True
  script:
    description:
      - Script body contents.
    type: str
    required: True
  targets:
    description:
      - Targets the script should be run against. Can reference either name or UID.
    type: list
    required: True
s�
- name: Run script
  checkpoint_run_script:
    script_name: "List root"
    script: ls -l /
    targets:
      - mycheckpointgw
sj
checkpoint_run_script:
  description: The checkpoint run script output.
  returned: always.
  type: list
(t
AnsibleModule(t
Connection(tpublishtinstall_policyNcC`sd|jd}|jd}|jd}i|d6|d6|d6}|jd|�\}}||fS(Ntscript_nametscriptttargetssscript-names/web_api/run-script(tparamstsend_request(tmodulet
connectionRR
Rtpayloadtcodetresponse((s]/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_run_script.pyt
run_scriptNs




cC`s�tdtdddt�dtdddt�dtdddt��}td|�}t|j�}t||�\}}itd	6}|d
kr�||d<n|jdd
j||��|j|�dS(NRttypetstrtrequiredR
Rtlistt
argument_spectchangedi�tcheckpoint_run_scripttmsgs5Checkpoint device returned error {0} with message {1}(	tdicttTrueRR	t_socket_pathRt	fail_jsontformatt	exit_json(RRRRRtresult((s]/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_run_script.pytmain\s

t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.connectionR	t2ansible.module_utils.network.checkpoint.checkpointR
RtjsonRR&t__name__(((s]/usr/lib/python2.7/site-packages/ansible/modules/network/check_point/checkpoint_run_script.pyt<module>s


			

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]