Sample Playbooks and Roles for support of Lenovo's CNOS and ENOS based networking devices in Ansible
- Modules provide the basis for supporting basic switch management functions.
- Module Playbooks and Roles are samples showing how to use each of the Modules and must be tailored by the user to their environment.
- The values of variables used in the sample roles and playbooks are typical to the lab test enviroment. These must be tailored by the user to their environment.
- Ansible 2.6 installed. Ansible Installation Instructions
- Lenovo CNOS network device version 10.2.1.0 or later
- Lenovo switches running ENOS version 8.4.1.0 or later
- SSH enabled on the device
- Ansible 2.6 has to be installed first.
- Clone the ansible-cnos github to an appropriate location.(https://github.com/lenovo/ansible-cnos.git)
- Copy the necessary playbooks and roles to <ansible-install-directory >/test/integration
- The roles has to be in the "roles" folder not in the "targets" folder.
- The host file (/etc/ansible/hosts) has to be updated typically as given in sample host files.
- Edit the hosts file based on IP address/ Username / Password of their environment
- Please refer to README.md of individual roles for customizations typical to them.
- Exceute the playbooks from <ansible-install-directory>/test/integration using command
ansible-playbook <Your Sample Playbook.yml > -vvvv
Lenovo documentation can be found here: Lenovo Ansible Documentation
- GPLv3
- Copyright (C) 2017 Lenovo, Inc.