From 72f065ee381f36e25c074c622d4dbd932647f58b Mon Sep 17 00:00:00 2001
From: "gioacchino.vino" <gioacchino.vino@infn.it>
Date: Thu, 28 Sep 2023 00:27:45 +0200
Subject: [PATCH] removed debug lines

---
 tasks/2-scan.yml | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/tasks/2-scan.yml b/tasks/2-scan.yml
index 0842bcd..cf5ba04 100644
--- a/tasks/2-scan.yml
+++ b/tasks/2-scan.yml
@@ -1,6 +1,6 @@
 
 ---
-- name: Set SSH tunnel
+- name: Set SSH tunel
   command: ssh -o StrictHostKeyChecking=no -f -N -L localhost:9390:192.168.235.234:9390 jenkins@scans.cloud.infn.it 
 
 - debug: 
@@ -11,11 +11,6 @@
     src: files/script.py
     dest: "{{ paas_ci_scan_script_path }}"
 
-- name: Remove existing reports
-  command: "rm -f *report.txt"
-  args:
-    chdir: "{{ paas_ci_workdir }}"
-
 - name:  Run scan
   command: "python3 {{ paas_ci_scan_script_path }} {{ paas_ci_test.endpoints_to_scan }} {{ paas_ci_workdir + '/dep.json'}} {{ paas_ci_workdir }}" 
   register: scan_output
@@ -31,15 +26,6 @@
 #     msg: "{{lookup('file', item.path)}}"
 #   with_items: "{{report_files.files}}"
 
-- name: Chech reports
-  command: "cat *report.txt |  grep Port | sort | uniq "
-  args:
-    chdir: "{{ paas_ci_workdir }}"
-  register: report_ports_output
-
-- debug:
-    var: report_ports_output
-
 - name: get Severity file content
   shell: cat "{{ paas_ci_workdir + '/severity.json'}}"
   register: severity 
-- 
GitLab