community.general.checkpoint_host (0.1.1) — module

Manages host objects on Check Point over Web Services API

Authors: Ansible by Red Hat (@rcarrillocruz)

preview | supported by network

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Manages host objects on Check Point devices including creating, updating, removing access rules objects. All operations are performed over Web Services API.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create host object
  checkpoint_host:
    name: attacker
    ip_address: 192.168.0.15
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete host object
  checkpoint_host:
    name: attacker
    state: absent

Inputs

    
name:
    description:
    - Name of the access rule.
    required: true
    type: str

state:
    default: present
    description:
    - State of the access rule (present or absent). Defaults to present.
    type: str

targets:
    description:
    - Targets to install the package policy on.
    type: list

ip_address:
    description:
    - IP address of the host object.
    type: str

policy_package:
    default: standard
    description:
    - Package policy name to be installed.
    type: str

auto_install_policy:
    default: 'yes'
    description:
    - Install the package policy if changes have been performed after the task completes.
    type: bool

auto_publish_session:
    default: 'yes'
    description:
    - Publish the current session if changes have been performed after task completes.
    type: bool

Outputs

checkpoint_hosts:
  description: The checkpoint host object created or updated.
  returned: always, except when deleting the host.
  type: list