cisco.cml.cml_lab_facts (1.2.0) — module

Get facts about a CML Lab

| "added in version" 0.1.0 of cisco.cml"

Authors: Steven Carter (@stevenca)

preview | supported by community

Install collection

Install with ansible-galaxy collection install cisco.cml:==1.2.0


Add to requirements.yml

  collections:
    - name: cisco.cml
      version: 1.2.0

Description

Get facts about a CML Lab


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Check initial topology connectivity
  hosts: localhost
  connection: local
  gather_facts: no
  tasks:
    - name: Get facts about a lab in CML
      cisco.cml.cml_lab_facts:
        host: "{{ cml_host }}"
        user: "{{ cml_username }}"
        password: "{{ cml_password }}"
        lab: "{{ cml_lab }}"
      register: results

    - debug:
        var: results

Inputs

    
lab:
    description: The name of the CML lab (CML_LAB)
    required: true
    type: str

host:
    description: FQDN of the target host (CML_HOST)
    required: true
    type: str

timeout:
    default: 30
    description: API Timeout
    required: false
    type: int

password:
    description: user pass for the target system (CML_PASSWORD)
    required: true
    type: str

username:
    aliases:
    - user
    description: user credential for target system (CML_USERNAME)
    required: true
    type: str

validate_certs:
    default: false
    description: certificate validation (CML_VALIDATE_CERTS)
    required: false
    type: bool