This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Ansible Role: ucs-lan

An Ansible role to perform LAN configuration on Cisco UCS Manager.

Requirements

This role requires UCS modules from Ansible v2.5.
UCS Ansible modules require the ucsmsdk Python module.

Installation

There are two ways you can test this role:

  1. Install it by cloning the Github repository (ensure CiscoUcs.ucs-lan is is your ANSIBLE_ROLES_PATH)

    git clone https://github.com/ciscoucs/ansible-role-ucs-lan CiscoUcs.ucs-lan
    
  2. Install it using the ansible-galaxy command

    ansible-galaxy install CiscoUcs.ucs-lan
    

Role Variables

Variables that are in defaults/main.yml are based on the FlexPod Datacenter with Docker EE Cisco Validated Design (CVD).
The Docker EE CVD is available at https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/UCS_CVDs/flexpod_docker_deploy_design.html.
Default UCS Manager login information is also provided in defaults.main.yml that can be used with the Cisco demo Cloud UCS 3.2 environment: https://dcloud-cms.cisco.com/demo/cisco-ucs-3-2-v1.

Example Playbook

tests/test.yml is an example of how to use the role:

---
- hosts: localhost
  roles:
    - CiscoUcs.ucs-lan

Run the test.yml playbook with the following command:

ansible-playbook [-i <inventory file>] test.yml

License

Apache 2.0

Author Information

David Soper (@dsoper2), CiscoUcs (@CiscoUcs)

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    UCS
  • Programming Languages

    Ansible
  • License

    Apache License 2.0

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.