Skip to content
Snippets Groups Projects
Commit b825439d authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Merge branch 'fix/iptrunk_checks' into 'develop'

iptrunk_checks: disable optical diff comparison

See merge request !244
parents eaae88e7 c9b52ef5
No related branches found
No related tags found
1 merge request!244iptrunk_checks: disable optical diff comparison
Pipeline #92523 passed
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ opt_checks_dir }}" path: "{{ opt_checks_dir }}"
state: directory state: directory
mode: '0755' mode: "0755"
delegate_to: localhost delegate_to: localhost
- name: Create file for the optical check results - name: Create file for the optical check results
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ opt_checks_file }}" path: "{{ opt_checks_file }}"
state: touch state: touch
mode: '0644' mode: "0644"
delegate_to: localhost delegate_to: localhost
- name: Create var for the result storage - name: Create var for the result storage
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
- name: Write result to the "{{ opt_checks_file }}" file - name: Write result to the "{{ opt_checks_file }}" file
when: check == "optical_pre" or check == "optical_post" when: check == "optical_pre" or check == "optical_post"
ansible.builtin.copy: ansible.builtin.copy:
mode: '0644' mode: "0644"
content: "{{ ae_result | to_nice_yaml }}" content: "{{ ae_result | to_nice_yaml }}"
dest: "{{ opt_checks_file }}" dest: "{{ opt_checks_file }}"
...@@ -147,12 +147,11 @@ ...@@ -147,12 +147,11 @@
when: check == "optical_pre" or check == "optical_post" when: check == "optical_pre" or check == "optical_post"
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ ae_result }}" msg: "{{ ae_result }}"
# - name: Produce the diff of optical check results on the "remaining" side
- name: Produce the diff of optical check results on the "remaining" side # when: >-
when: >- # check == "optical_post"
check == "optical_post" # and
and # new_node is defined
new_node is defined # and
and # inventory_hostname != new_node.router.router_fqdn
inventory_hostname != new_node.router.router_fqdn # ansible.builtin.include_tasks: diff_optical_results.yaml
ansible.builtin.include_tasks: diff_optical_results.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment