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
b825439d
Commit
b825439d
authored
3 months ago
by
Aleksandr Kurbatov
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/iptrunk_checks' into 'develop'
iptrunk_checks: disable optical diff comparison See merge request
!244
parents
eaae88e7
c9b52ef5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!244
iptrunk_checks: disable optical diff comparison
Pipeline
#92523
passed
3 months ago
Stage: linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geant/gap_ansible/roles/iptrunk_checks/tasks/main.yml
+11
-12
11 additions, 12 deletions
geant/gap_ansible/roles/iptrunk_checks/tasks/main.yml
with
11 additions
and
12 deletions
geant/gap_ansible/roles/iptrunk_checks/tasks/main.yml
+
11
−
12
View file @
b825439d
...
...
@@ -113,7 +113,7 @@
ansible.builtin.file
:
path
:
"
{{
opt_checks_dir
}}"
state
:
directory
mode
:
'
0755
'
mode
:
"
0755
"
delegate_to
:
localhost
-
name
:
Create file for the optical check results
...
...
@@ -121,7 +121,7 @@
ansible.builtin.file
:
path
:
"
{{
opt_checks_file
}}"
state
:
touch
mode
:
'
0644
'
mode
:
"
0644
"
delegate_to
:
localhost
-
name
:
Create var for the result storage
...
...
@@ -139,7 +139,7 @@
-
name
:
Write result to the "{{ opt_checks_file }}" file
when
:
check == "optical_pre" or check == "optical_post"
ansible.builtin.copy
:
mode
:
'
0644
'
mode
:
"
0644
"
content
:
"
{{
ae_result
|
to_nice_yaml
}}"
dest
:
"
{{
opt_checks_file
}}"
...
...
@@ -147,12 +147,11 @@
when
:
check == "optical_pre" or check == "optical_post"
ansible.builtin.debug
:
msg
:
"
{{
ae_result
}}"
-
name
:
Produce the diff of optical check results on the "remaining" side
when
:
>-
check == "optical_post"
and
new_node is defined
and
inventory_hostname != new_node.router.router_fqdn
ansible.builtin.include_tasks
:
diff_optical_results.yaml
# - name: Produce the diff of optical check results on the "remaining" side
# when: >-
# check == "optical_post"
# and
# new_node is defined
# and
# inventory_hostname != new_node.router.router_fqdn
# ansible.builtin.include_tasks: diff_optical_results.yaml
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