cnos_system – Manage the system attributes on Lenovo CNOS devices¶
New in version 2.8.
Synopsis¶
- This module provides declarative management of node system attributes on Lenovo CNOS devices. It provides an option to configure host system parameters or remove those parameters from the device active configuration.
Parameters¶
Examples¶
- name: configure hostname and domain-name
cnos_system:
hostname: cnos01
domain_name: test.example.com
- name: remove configuration
cnos_system:
state: absent
- name: configure name servers
cnos_system:
name_servers:
- 8.8.8.8
- 8.8.4.4
- name: configure DNS Lookup sources
cnos_system:
lookup_source: MgmtEth0/0/CPU0/0
lookup_enabled: yes
- name: configure name servers with VRF support
nxos_system:
name_servers:
- { server: 8.8.8.8, vrf: mgmt }
- { server: 8.8.4.4, vrf: mgmt }
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands
list
|
always |
The list of configuration mode commands to send to the device
Sample:
['hostname cnos01', 'ip domain-name test.example.com vrf default']
|
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Anil Kumar Muraleedharan (@amuraleedhar)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.