ansible.builtin.cp_mgmt_put_file (v2.9.17) — module

put file on Check Point over Web Services API

| "added in version" 2.9 of ansible.builtin"

Authors: Or Soffer (@chkp-orso)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.17

Description

put file on Check Point over Web Services API

All operations are performed over Web Services API.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: put-file
  cp_mgmt_put_file:
    file_content: 'vs ip 192.0.2.1
vs2 ip 192.0.2.2'
    file_name: vsx_conf
    file_path: /home/admin/
    targets:
    - corporate-gateway

Inputs

    
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

file_name:
    description:
    - N/A
    type: str

file_path:
    description:
    - N/A
    type: str

file_content:
    description:
    - N/A
    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_put_file:
  description: The checkpoint put-file output.
  returned: always.
  type: dict