-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mandeepdhiman123
committed
Aug 26, 2020
1 parent
36cb980
commit d8c60b3
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
mosip-security-playbook/playbooks/nmap-scanning-cluster.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This play perform all the tasks needed for docker security scanning. | ||
# Here we have split tasks and roles into seperate | ||
# play as tasks only run after roles if they are in the same play (for some reason) | ||
# and for us sequencing is important. | ||
|
||
- hosts: security-console | ||
gather_facts: true | ||
tasks: | ||
- {name: 'nmap scanning report folder', file: {name: "{{ nmap_report_dir }}", state: directory}} | ||
|
||
- hosts: scancluster | ||
gather_facts: true | ||
become_user: root | ||
become: yes | ||
roles: | ||
- {role: nmap-scanning, tags: [nmap-scanning]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- name: Run port scanning using nmap | ||
command: "nmap -p- -Pn -sS -A --script banner -oX - {{ inventory_hostname }} | xsltproc -o {{nmap_report_dir}}/1.html -" |