Search⌘ K

Vars and Playbooks

Explore the organization of an Ansible repository focusing on variables and playbooks. Understand how to structure group_vars and host_vars folders for device groups and individual hosts. Learn to manage playbooks for network tasks and automation, improving configuration management and orchestration.

We'll cover the following...

group_vars

The group_vars folder contains the data models applied to groups of devices found in the hosts file. This folder contains YAML files created to contain data models. group_vars folder matching the sample hosts file is as follows:

group_vars
|
 ---- ENTERPRISE.yml|
 ---- CAMPUS.yml
 ---- CAMPUS-CORE.yml
 ---- CAMPUS-DISTRIBUTION.yml
 ---- CAMPUS-ACCESS.yml
 ----
...