From c1abb3368869ba272d1097d879d85ba9e50f4c19 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 6 Feb 2021 07:19:58 -0600 Subject: [PATCH] Use variable in all commands. --- tasks/general/tests/nmap.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/general/tests/nmap.yml b/tasks/general/tests/nmap.yml index 02a3523..17c039d 100644 --- a/tasks/general/tests/nmap.yml +++ b/tasks/general/tests/nmap.yml @@ -2,10 +2,10 @@ # Nmap port test - name: General | Tests | nmap | Run Count - shell: "nmap --open localhost | grep -c open > /root/nmap.txt" + shell: "nmap --open localhost | grep -c open > {{ nmap_report }}" - name: General | Tests | nmap | Run Open - shell: "nmap --open localhost | grep open >> /root/nmap.txt" + shell: "nmap --open localhost | grep open >> {{ nmap_report }}" - name: General | Tests | nmap | Make Viewable file: