community.network.cnos_system – Manage the system attributes on Lenovo CNOS devices¶
Note
This plugin is part of the community.network collection (version 2.1.1).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.cnos_system
.
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
community.network.cnos_system:
hostname: cnos01
domain_name: test.example.com
- name: Remove configuration
community.network.cnos_system:
state: absent
- name: Configure name servers
community.network.cnos_system:
name_servers:
- 8.8.8.8
- 8.8.4.4
- name: Configure DNS Lookup sources
community.network.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:
Authors¶
Anil Kumar Muraleedharan (@amuraleedhar)