LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

How do you add a Check Point management server to an Ansible YAML inventory as a group networking, and where do that group's login variables go?

Add networking as a child group with the management server as its host in hosts.yml, and put the variables in group_vars/networking/main.yml (or group_vars/networking.yml) next to the inventory.

itia:
  children:
    ansible:
      hosts:
        itia-ansible:
    networking:
      hosts:
        mgmt.example.net:

networking now exists as a group that playbooks can target with hosts: networking. Every Check Point management server that shares the same credentials goes into its hosts: list. A host can be a name or an IP address, and a key with nothing after the colon simply means "no host-specific variables here".

Group variables are loaded automatically from a directory named after the group, in group_vars/ beside the inventory (or the playbook):

inventory/
  hosts.yml
  group_vars/
    all/main.yml          # applies to every host
    networking/main.yml   # only for the networking group, overrides all

Because networking is more specific than all, its values win where both set the same variable, so you can keep defaults for Linux or Windows hosts in all and override them for the firewall.

Indentation is the structure in YAML: a single misplaced space moves a host into the wrong group or makes the file unparseable.

Go deeper:

From Quiz: ITIA / Network Automation with Ansible and a Check Point Firewall | Updated: Nov 26, 2026