Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-interface
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-python
ansible-networking-stage
kypo-interface
Commits
097526c8
Commit
097526c8
authored
6 years ago
by
Kamil Andoniadis
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
9aeb4cb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+53
-0
53 additions, 0 deletions
README.md
with
53 additions
and
0 deletions
README.md
+
53
−
0
View file @
097526c8
# Ansible role - Interface - BETA (only for Ansible 2.3.3.0)
This role serves for network interface configuration on debian-based systems.
## Requirements
*
Ansible version 2.3.3.0
*
This role requires root access, so you either need to specify
`become`
directive as a global or while invoking the role.
```yml
become: yes
```
*
Also requires Ansible variables, therefore do not disable directive
`gather_facts`
.
## Role paramaters
Mandatory parameters.
*
`interface_interfaces`
- The list of network interface parameters. Each interface may consists of following attributes.
*
`interface_mac`
(mandatory) - .
*
`interface_default_gateway`
(optional) - .
*
`interface_routes`
(optional) - The list of route parameters. Each route must consist of following attributes.
*
`gateway`
(mandatory) - .
*
`network`
(mandatory) - .
*
`mask`
(mandatory) - .
Optional parameters.
*
`interface_clean`
- .
*
`interface_mtu`
- .
*
`interface_file_name`
- .
## Example
Example of the simplest network interface configuration that
```
yml
roles
:
-
role
:
interface
interface_interfaces
:
-
interface_mac
:
01:23:45:67:89:ab
interface_mtu
:
1442
```
## Maintainer notes
This role is primarily used for KYPO sandbox networking and due to usage
of tool without ongoing maintenance, it is necessary that this role supports
at most Ansible version 2.3.3.0. This version contains some bugs and limitations
and therefore this role has to take as argument list of interface configurations
instead of configuration for single interface.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment