Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Nounous
Ansible
Commits
309cd318
Commit
309cd318
authored
4 years ago
by
Benjamin Graillot
Browse files
Options
Downloads
Patches
Plain Diff
[interfaces] Deploy interfaces on unifi
parent
5cce4865
No related branches found
No related tags found
1 merge request
!86
[interfaces] Deploy interfaces on unifi
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hosts
+1
-0
1 addition, 0 deletions
hosts
plays/network-interfaces.yml
+1
-1
1 addition, 1 deletion
plays/network-interfaces.yml
roles/interfaces/templates/network/interfaces.d/ifalias.j2
+1
-0
1 addition, 0 deletions
roles/interfaces/templates/network/interfaces.d/ifalias.j2
with
3 additions
and
1 deletion
hosts
+
1
−
0
View file @
309cd318
...
...
@@ -85,6 +85,7 @@ hodaur.adm.crans.org
monitoring.adm.crans.org
boeing.adm.crans.org
fluxx.adm.crans.org
unifi.adm.crans.org
[ovh_physical]
sputnik.adm.crans.org
...
...
This diff is collapsed.
Click to expand it.
plays/network-interfaces.yml
+
1
−
1
View file @
309cd318
#!/usr/bin/env ansible-playbook
---
-
hosts
:
voyager.adm.crans.org,boeing.adm.crans.org,fluxx.adm.crans.org,hodaur.adm.crans.org
-
hosts
:
voyager.adm.crans.org,boeing.adm.crans.org,fluxx.adm.crans.org,hodaur.adm.crans.org
,unifi.adm.crans.org
vars
:
vlan
:
-
name
:
srv
...
...
This diff is collapsed.
Click to expand it.
roles/interfaces/templates/network/interfaces.d/ifalias.j2
+
1
−
0
View file @
309cd318
...
...
@@ -44,6 +44,7 @@ iface {{ interfaces[item.name] }} inet6 static
{% if item.gateway_v6 is defined %}
gateway {{ item.gateway_v6 }}
{% endif %}
accept_ra 0
{% if ansible_local.interfaces.sup_if_6 is defined %}
{% if interfaces[item.name] in ansible_local.interfaces.sup_if_6 %}
{% for line in ansible_local.interfaces.sup_if_6[interfaces[item.name]] %}
...
...
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