Skip to content
Snippets Groups Projects
Commit 47a6ecb9 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Ansible role: grouped task

parent c7fe8d55
No related branches found
No related tags found
1 merge request!93Debug paas ci
Pipeline #131815 passed
...@@ -73,20 +73,18 @@ ...@@ -73,20 +73,18 @@
with_items: "{{ report_files.files }}" with_items: "{{ report_files.files }}"
when: summary_report_json.global == 'NOK' when: summary_report_json.global == 'NOK'
- name: Load scans log - name: Show scan log if vulnerability detected
command: cat "{{ paas_ci_workdir + '/scan.log' }}" block:
register: scan_log - name: Load log
#when: summary_report_json.global == 'NOK' command: cat "{{ paas_ci_workdir + '/scan.log' }}"
register: log
- name: import scan_log - name: import log
set_fact: set_fact:
imported_scan_log: "{{ scan_log.stdout }}" imported_log: "{{ log.stdout }}"
#when: summary_report_json.global == 'NOK' - name: Show log
debug:
- name: Show scans log var: imported_log
debug: when: summary_report_json.global == 'NOK'
var: imported_scan_log
#when: summary_report_json.global == 'NOK'
- name: Detailed report summary - name: Detailed report summary
debug: debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment