nos_config – Manage Extreme Networks NOS configuration sections¶
New in version 2.7.
Synopsis¶
Extreme NOS configurations use a simple block indent file syntax for segmenting configuration into sections. This module provides an implementation for working with NOS configuration sections in a deterministic way.
Parameters¶
Examples¶
- name: configure top level configuration
nos_config:
lines: logging raslog console INFO
- name: configure interface settings
nos_config:
lines:
- description test interface
- ip address 172.31.1.1/24
parents:
- interface TenGigabitEthernet 104/0/1
- name: configure multiple interfaces
nos_config:
lines:
- lacp timeout long
parents: "{{ item }}"
with_items:
- interface TenGigabitEthernet 104/0/1
- interface TenGigabitEthernet 104/0/2
- name: load new acl into device
nos_config:
lines:
- seq 10 permit ip host 1.1.1.1 any log
- seq 20 permit ip host 2.2.2.2 any log
- seq 30 permit ip host 3.3.3.3 any log
- seq 40 permit ip host 4.4.4.4 any log
- seq 50 permit ip host 5.5.5.5 any log
parents: ip access-list extended test
before: no ip access-list extended test
match: exact
- name: check the running-config against master config
nos_config:
diff_against: intended
intended_config: "{{ lookup('file', 'master.cfg') }}"
- name: configurable backup path
nos_config:
lines: logging raslog console INFO
backup: yes
backup_options:
filename: backup.cfg
dir_path: /home/user
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
backup_path
string
|
when backup is yes |
The full path to the backup file
Sample:
/playbooks/ansible/backup/[email protected]:26:34
|
commands
list
|
always |
The set of commands that will be pushed to the remote device
Sample:
['switch-attributes hostname foo', 'router ospf', 'area 0']
|
updates
list
|
always |
The set of commands that will be pushed to the remote device
Sample:
['switch-attributes hostname foo', 'router ospf', 'area 0']
|
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Lindsay Hill (@LindsayHill)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.