dellos9_config – Manage Dell EMC Networking OS9 configuration sections¶
Synopsis¶
OS9 configurations use a simple block indent file syntax for segmenting configuration into sections. This module provides an implementation for working with OS9 configuration sections in a deterministic way.
Parameters¶
Notes¶
Note
This module requires Dell OS9 version 9.10.0.1P13 or above.
This module requires to increase the ssh connection rate limit. Use the following command ip ssh connection-rate-limit 60 to configure the same. This can also be done with the dellos9_config module.
For more information on using Ansible to manage Dell EMC Network devices see https://www.ansible.com/ansible-dell-networking.
Examples¶
- dellos9_config:
lines: ['hostname {{ inventory_hostname }}']
provider: "{{ cli }}"
- dellos9_config:
lines:
- 10 permit ip host 1.1.1.1 any log
- 20 permit ip host 2.2.2.2 any log
- 30 permit ip host 3.3.3.3 any log
- 40 permit ip host 4.4.4.4 any log
- 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
- dellos9_config:
lines:
- 10 permit ip host 1.1.1.1 any log
- 20 permit ip host 2.2.2.2 any log
- 30 permit ip host 3.3.3.3 any log
- 40 permit ip host 4.4.4.4 any log
parents: ['ip access-list extended test']
before: ['no ip access-list extended test']
replace: block
- dellos9_config:
lines: ['hostname {{ inventory_hostname }}']
provider: "{{ cli }}"
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]:28:34
|
commands
list
|
always |
The set of commands that will be pushed to the remote device
Sample:
['hostname foo', 'router bgp 1', 'bgp router-id 1.1.1.1']
|
saved
boolean
|
When not check_mode. |
Returns whether the configuration is saved to the startup configuration or not.
Sample:
True
|
updates
list
|
always |
The set of commands that will be pushed to the remote device.
Sample:
['hostname foo', 'router bgp 1', 'bgp router-id 1.1.1.1']
|
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Dhivya P (@dhivyap)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.