Skip to content

srl-labs/intent-based-ansible-lab

Repository files navigation

Intent-based fabric management with Ansible

A practical example of using Ansible to manage the configuration of an SR Linux fabric with the intent-based approach leveraging the official Ansible collection for SR Linux - read the tutorial on learn.srlinux.dev for a complete walkthrough of this project.


Run this lab in GitHub Codespaces for free.
Learn more about Containerlab for Codespaces.


Quick Start Guide to run in codespaces

  1. Deploy the lab topology:
sudo clab deploy -t topo.yml
  1. Run the Ansible playbook:
ansible-playbook -i inv/ -e intent_dir=/workspaces/intent-based-ansible-lab/intent_examples/infra/underlay_with_fabric_intent --diff playbooks/cf_fabric.yml