check_point.gaia.cp_gaia_put_file (5.0.1) — module

Add a new file to a Check Point machine.

| "added in version" 1.0.0 of check_point.gaia"

Authors: Yuval Feiger (@chkp-yuvalfe)

Install collection

Install with ansible-galaxy collection install check_point.gaia:==5.0.1


Add to requirements.yml

  collections:
    - name: check_point.gaia
      version: 5.0.1

Description

Add a new file to a Check Point machine.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a file
  check_point.gaia.cp_gaia_put_file:
    file_name: "ansible_file.txt"
    text_content: "It's an ansible file."
    override: true

Inputs

    
version:
    description: Gaia API version for example 1.6.
    required: false
    type: str

override:
    default: false
    description: If the file already exists, indicates whether to overwrite it. Recommended
      value is true. Note When the value is false, if the file already exists in the system
      from an previous execution, it will fail.
    required: false
    type: bool

file_name:
    description: Filename include the desired path. The file will be created in the user
      home directory if the full path wasn't provided.
    required: true
    type: str

text_content:
    description: Content to add to the new file.
    required: true
    type: str

Outputs

put_file:
  description: The checkpoint object updated.
  returned: always.
  type: dict