BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › Automation › Ansible: inventory, ad-hoc commands and first playbooks

Ansible: inventory, ad-hoc commands and first playbooks

Ansible from the inventory up: an SSH path to the router, an Ansible inventory told apart from /etc/hosts, ansible.cfg kept beside the project it serves, ad-hoc commands run against one switch, a group or everything, and output captured locally one file per device before the pattern is generalised to any show command — then the same work written as a playbook and turned toward changing things, with an OSPF network statement placed under its parent, routers and switches given separate plays, a nested policy configured, and port records looped instead of repeated. Explanation and checks; five written exercises.

Lessons

More in Automation