Skip to content

Commit

Permalink
Completed all basic modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepdhiman123 committed Aug 27, 2020
1 parent d2b95b2 commit a1207fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ This framework is designed for mosip e2e security. this framework will cover bel
4. Command line scripts for cluster scanning is in progress.


******** Note: Set ansible to run for localhost as well. If you want to run the test from putty or remote location. Please enable "X11Forward true" for server and for putty or any console.
******** Note: Set ansible to run for localhost as well. If you want to run the test from putty or remote location. Please enable "X11Forward true" for server and for putty or any console.

Thanks for RoboZap python library
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
- name: Install basic apt packages
apt: name={{ item }} state=present
with_items:
- update
- python
- python-pip
- libssl-dev
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
- name: Add apt repository
- apt_repository:
apt_repository:
repo: ppa:mrazavi/openvas
state: present

- name: Install apt packages
apt: name={{ item }} state=present
with_items:
- software-properties-common
- openvas9
- openvas
- sqlite3
- texlive-latex-extra --no-install-recommends
- texlive-latex-extra
- texlive-fonts-recommended
- libopenvas9-dev
- libopenvas8-dev

- name: Update openvas db
command: greenbone-nvt-sync
Expand Down
3 changes: 3 additions & 0 deletions mosip-security-playbook/roles/network-security/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- name: Get the IP of the inventory host
command: "ping -c1 {{ inventory_hostname }} | sed -nE 's/^PING[^(]+\(([^)]+)\).*/\1/p'"
register: host_ip
- name: Run network scanning using openvas
shell:
with_items: "{{ groups['scancluster'] }}"
2 changes: 1 addition & 1 deletion mosip-security-playbook/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
- import_playbook: playbooks/os-security.yml
- import_playbook: playbooks/docker-security.yml
- import_playbook: playbooks/port-security.yml
#- import_playbook: playbooks/network-security.yml Setup complete use via https://<Your IP>:4000/ Working on Command line
- import_playbook: playbooks/network-security.yml Setup complete use via https://<Your IP>:4000/ Working on Command line
- import_playbook: playbooks/api-security.yml

0 comments on commit a1207fb

Please sign in to comment.