From e24487aabb4e0ce1b227362ea69e6b1018f192a6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 3 Feb 2021 21:29:45 -0600 Subject: [PATCH] Add nmap test. --- local.yml | 3 ++- tasks/general/tests/nmap.yml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/local.yml b/local.yml index ae848a0..1bde3fc 100644 --- a/local.yml +++ b/local.yml @@ -47,7 +47,7 @@ # Additional tasks to configure Desktop Environments - include: tasks/linux/software/flatpaks.yml when: ansible_system == "Linux" and flatpak_distro - + - name: Worktation | Linux | Packages | Not Implemented shell: echo "Not implemented yet. :(" when: ansible_system == "Linux" and not flatpak_distro @@ -60,4 +60,5 @@ become: true tasks: + - include: tasks/general/tests/nmap.yml - include: tasks/general/tests/lynis.yml \ No newline at end of file diff --git a/tasks/general/tests/nmap.yml b/tasks/general/tests/nmap.yml index ab8e6e1..8d7a29f 100644 --- a/tasks/general/tests/nmap.yml +++ b/tasks/general/tests/nmap.yml @@ -1,3 +1,10 @@ --- # Nmap port test +- name: General | Tests | nmap | Run + shell: "nmap localhost > /root/nmap.txt" + +- name: General | Tests | nmap | Make Report Readable + file: + path: "/root/nmap.txt" + mode: '0444' \ No newline at end of file