Skip to content
Snippets Groups Projects

iptrunk_checks: disable optical diff comparison

Merged Aleksandr Kurbatov requested to merge fix/iptrunk_checks into develop
1 file
+ 11
12
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading