diff --git a/tasks/2-scan.yml b/tasks/2-scan.yml index 0842bcdde3ed8d6483835e773fff609fdb040394..cf5ba04612e236306a30b9ec5ec5fd1c3cda73ff 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