diff --git a/tasks/2-scan.yml b/tasks/2-scan.yml index 0dd4579c32e6fa0bf2b0a8cf566f940819bd4de3..75e9a808a1b81385a63997970a9d06beed939cbb 100644 --- a/tasks/2-scan.yml +++ b/tasks/2-scan.yml @@ -75,17 +75,18 @@ - name: Load scans log command: cat "{{ paas_ci_workdir + '/scan.log' }}" - register: scans_log - when: summary_report_json.global == 'NOK' + register: scan_log + #when: summary_report_json.global == 'NOK' -- name: import scans_log +- name: import scan_log set_fact: - imported_scans_log: "{{ scans_log.stdout }}" + imported_scan_log: "{{ scan_log.stdout }}" + #when: summary_report_json.global == 'NOK' - name: Show scans log debug: - var: imported_scans_log - when: summary_report_json.global == 'NOK' + var: imported_scan_log + #when: summary_report_json.global == 'NOK' - name: Detailed report summary debug: