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
Commits
13cbd0db
Commit
13cbd0db
authored
1 year ago
by
Simone Spinelli
Committed by
Aleksandr Kurbatov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update file deploy_base_config.yaml
parent
4d544fc0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!151
use of defaults inside role
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml
+13
-0
13 additions, 0 deletions
...p_ansible/roles/base_config/tasks/deploy_base_config.yaml
with
13 additions
and
0 deletions
geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml
+
13
−
0
View file @
13cbd0db
...
...
@@ -5,11 +5,17 @@
src_format
:
text
check_commit
:
true
diff
:
true
register
:
output
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "juniper"
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
There are diffs!!!!
when
:
output.diff != "" and is_verification_workfloy ==
true
-
name
:
Deploy base_config on "{{ inventory_hostname }}" [AND COMMIT][Juniper]
junipernetworks.junos.junos_config
:
...
...
@@ -32,12 +38,19 @@
commit
:
true
validate
:
true
diff
:
true
register
:
output
check_mode
:
true
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
wfo_router.router.vendor == "nokia"
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
There are diffs!!!!
when
:
output.diff != "" and is_verification_workfloy ==
true
-
name
:
Validation succeeded
ansible.builtin.debug
:
msg
:
"
Base
config
has
been
validated
against
the
router
and
no
syntax
errors
were
found"
...
...
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