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
0c13df58
Commit
0c13df58
authored
1 year ago
by
Aleksandr Kurbatov
Committed by
Aleksandr Kurbatov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
deploy_base_config: style update
parent
2f86989f
No related branches found
No related tags found
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
+26
-13
26 additions, 13 deletions
...p_ansible/roles/base_config/tasks/deploy_base_config.yaml
with
26 additions
and
13 deletions
geant/gap_ansible/roles/base_config/tasks/deploy_base_config.yaml
+
26
−
13
View file @
0c13df58
...
...
@@ -7,8 +7,10 @@
diff
:
true
register
:
output
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
verb == "deploy"
and
( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "juniper"
...
...
@@ -20,8 +22,10 @@
comment
:
"
{{
commit_comment
}}"
diff
:
true
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is false and
verb == "deploy"
and
not ( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "juniper"
-
name
:
Deploy base_config on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA]
...
...
@@ -36,11 +40,14 @@
register
:
output
check_mode
:
true
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
verb == "deploy"
and
( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "nokia"
-
name
:
Fail if there is any diff
-
name
:
Fail if there is any diff
ansible.builtin.fail
:
msg
:
There are diffs!!!!
when
:
>
...
...
@@ -53,8 +60,10 @@
ansible.builtin.debug
:
msg
:
"
Base
config
has
been
validated
against
the
router
and
no
syntax
errors
were
found"
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is true and
verb == "deploy"
and
( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "nokia"
...
...
@@ -69,14 +78,18 @@
diff
:
true
check_mode
:
false
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is false and
verb == "deploy"
and
not ( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "nokia"
-
name
:
PLEASE CHECK THE CONFIG ON THE BOX
ansible.builtin.debug
:
msg
:
"
Base
config
has
been
deployed,
check
on
the
router
for
the
result"
when
:
>
verb == "deploy" and
( dry_run | ansible.builtin.bool ) is false and
verb == "deploy"
and
not ( dry_run | ansible.builtin.bool )
and
wfo_router.router.vendor == "nokia"
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