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 @@
with_items: "{{ report_files.files }}"
when: summary_report_json.global == 'NOK'
- name: Load scans log
command: cat "{{ paas_ci_workdir + '/scan.log' }}"
register: scan_log
#when: summary_report_json.global == 'NOK'
- name: import scan_log
set_fact:
imported_scan_log: "{{ scan_log.stdout }}"
#when: summary_report_json.global == 'NOK'
- name: Show scans log
debug:
var: imported_scan_log
#when: summary_report_json.global == 'NOK'
- name: Show scan log if vulnerability detected
block:
- name: Load log
command: cat "{{ paas_ci_workdir + '/scan.log' }}"
register: log
- name: import log
set_fact:
imported_log: "{{ log.stdout }}"
- name: Show log
debug:
var: imported_log
when: summary_report_json.global == 'NOK'
- name: Detailed report summary
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