check_point.gaia.cp_gaia_dhcp_server_facts (5.0.1) — module

Shows DHCP server information.

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

Authors: Ameer Asli (@chkp-ameera)

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

Shows DHCP server information.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Shows DHCP server information.
  check_point.gaia.cp_gaia_dhcp_server_facts:

Inputs

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

Outputs

ansible_facts:
  contains:
    enabled:
      description: DHCP server status.
      returned: always
      type: bool
    subnets:
      contains:
        default_gateway:
          description: The IPv4 address of the default gateway for the DHCP clients.
          returned: always
          type: str
        default_lease:
          description: The default lease that the server allocates, in seconds.
          returned: always
          type: int
        dns:
          contains:
            domain_name:
              description: Domain name.
              returned: always
              type: str
            primary:
              description: The IPv4 address of the Primary DNS server for the DHCP
                clients.
              returned: always
              type: str
            secondary:
              description: The IPv4 address of the Secondary DNS server for the DHCP
                clients (to use if the primary DNS server does not respond).
              returned: always
              type: str
            tertiary:
              description: The IPv4 address of the Tertiary DNS server for the DHCP
                clients (to use if the primary and secondary DNS servers do not respond).
              returned: always
              type: str
          description: DNS configuration.
          returned: always
          type: dict
        enabled:
          description: Enable DHCP on this subnet.
          returned: always
          type: bool
        ip_pools:
          contains:
            enabled:
              description: Enables or disables the DHCP Server for this subnet IP
                pool.
              returned: always
              type: bool
            end:
              description: The last IPv4 address of the range.
              returned: always
              type: str
            include:
              description: Specifies whether to include or exclude this range of IPv4
                addresses in the IP pool.
              returned: always
              type: str
            start:
              description: The first IPv4 address of the range.
              returned: always
              type: str
          description: Range of IPv4 addresses that the server assigns to hosts.
          elements: dict
          returned: always
          type: list
        max_lease:
          description: The longest lease that the server can allocate, in seconds.
          returned: always
          type: int
        netmask:
          description: Subnet mask.
          returned: always
          type: int
        subnet:
          description: IPv4 address for the subnet.
          returned: always
          type: str
      description: Subnets.
      elements: dict
      returned: always
      type: list
  description: The interface/s facts.
  returned: always.
  type: dict