community.network.ordnance_config – Manage Ordnance configuration sections¶
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.ordnance_config
.
Synopsis¶
Ordnance router configurations use a simple block indent file syntax for segmenting configuration into sections. This module provides an implementation for working with these configuration sections in a deterministic way.
Parameters¶
Examples¶
---
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
vars:
cli:
host: "{{ inventory_hostname }}"
username: RouterName
password: password
transport: cli
---
- name: Configure top level configuration
community.network.ordnance_config:
lines: hostname {{ inventory_hostname }}
provider: "{{ cli }}"
- name: Configure interface settings
community.network.ordnance_config:
lines:
- description test interface
- ip address 172.31.1.1 255.255.255.0
parents: interface Ethernet1
provider: "{{ cli }}"
- name: Configure bgp router
community.network.ordnance_config:
lines:
- neighbor 1.1.1.1 remote-as 1234
- network 10.0.0.0/24
parents: router bgp 65001
provider: "{{ cli }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Alexander Turner (@alexanderturner) <alex.turner@ordnance.io>