Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GAP Ansible Collection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
GÉANT Orchestration and Automation Team
GAP
GAP Ansible Collection
Merge requests
!152
IPtrunk: validation workflow additions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
IPtrunk: validation workflow additions
verification_iptrunk
into
develop
Overview
0
Commits
4
Pipelines
1
Changes
5
Merged
Aleksandr Kurbatov
requested to merge
verification_iptrunk
into
develop
10 months ago
Overview
0
Commits
4
Pipelines
1
Changes
5
Expand
Description part (extra space)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
e13c1b3a
4 commits,
10 months ago
5 files
+
47
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
geant/gap_ansible/roles/iptrunk/tasks/deploy_object.yaml
+
22
−
8
Options
@@ -6,11 +6,22 @@
src_format
:
text
check_commit
:
true
diff
:
true
register
:
output
when
:
>
verb == "deploy" and
local_side.iptrunk_side_node.vendor == "juniper" and
dry_run | ansible.builtin.bool
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
Trunk config drift detected!!!
when
:
>
output.changed | ansible.builtin.bool
and
is_verification_workflow | ansible.builtin.bool
and
local_side.iptrunk_side_node.vendor == "juniper"
-
name
:
Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [AND COMMIT][JUNIPER]
junipernetworks.junos.junos_config
:
update
:
'
replace'
@@ -23,14 +34,6 @@
local_side.iptrunk_side_node.vendor == "juniper" and
not (dry_run | ansible.builtin.bool)
# - name: Show real diff of "{{ config_object }}"
# ansible.builtin.debug:
# msg: "{{ response }}"
# when: >
# verb == "deploy" and
# local_side.iptrunk_side_node.vendor == "juniper" and
# not (dry_run | ansible.builtin.bool)
-
name
:
Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA]
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config
:
@@ -39,12 +42,23 @@
content
:
"
{{
lookup('ansible.builtin.template',
'{{
local_side.iptrunk_side_node.vendor
}}/{{
config_object
}}.j2')
}}"
commit
:
true
diff
:
true
register
:
output
check_mode
:
true
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
local_side.iptrunk_side_node.vendor == "nokia"
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
Trunk config drift detected!!!
when
:
>
output.changed | ansible.builtin.bool
and
is_verification_workflow | ansible.builtin.bool
and
local_side.iptrunk_side_node.vendor == "nokia"
-
name
:
Deploy "{{ config_object }}"on "{{ inventory_hostname }}" [AND COMMIT][NOKIA]
# ansible.netcommon.netconf_config:
geant.gap_ansible.nokia_netconf_config
:
Loading