Saturday, May 4, 2024

 

Installation

Directly from Ansible Galaxy

  ansible-galaxy collection install cisco.cml

via git repository

  ansible-galaxy collection install 'git@github.com:CiscoDevNet/ansible-cml.git,branch'

Environmental Variables

  • CML_USERNAME: Username for the CML user (used when host not specified)
  • CML_PASSWORD: Password for the CML user (used when password not specified)
  • CML_HOST: The CML host (used when host not specified)
  • CML_LAB: The name of the lab

Running Playbook against CML Labs

You can specify the topology file when you run the playbook as an extravar.  

ansible-playbook cisco.cml.build -e wait='yes' -e cml_lab_file=topology.yaml