CiscoDevNet / ansible-cml

17 stars 22 forks source link

Feature Request/add cml_import module #6

Closed ksaegusa closed 2 years ago

ksaegusa commented 3 years ago

Hi

I sometimes use the Import feature of CML to build my Lab. I would like to add the cml_import module as the current module does not allow that.

stevenca commented 2 years ago

cml_lab does this now. Just specify a filename:

    - name: Create the lab
      cisco.cml.cml_lab:
        host: "{{ cml_host }}"
        user: "{{ cml_username }}"
        password: "{{ cml_password }}"
        lab: "{{ cml_lab }}"
        state: present
        file: "{{ cml_lab_file }}"
      register: results