In this video I will be explaining Ansible Variables and mainly Ansible Host_Vars and Ansible Group_Vars and how they relate to using Ansible as a Network Engineer.
Check out my courses: https://www.rogerperkin.co.uk/courses/
Ansible group_vars vs hosts_vars
https://www.rogerperkin.co.uk/network...
Whilst the video is focussed on configuring Network devices, the theory of Ansible Host_Vars and Ansible Group_Vars is the same for using Ansible for any purpose.
You define host vars in Ansible by creating a YAML file with the filename the same as the host you want to define variables for, this file then lives in the host_vars folder
Same with the group vars, you create a YAML file with the filename being the same as the group you want to define variables for and this file then lives in the group_vars folder
Any variables that relate to any device are then defined in the all.yml file.
https://www.rogerperkin.co.uk/network...
#ansible #networkautomation #cisco